Preheat oven to 325 degrees. Mix together olive oil and sugar. Add vanilla and almond extract, if using, and eggs. Beat until well blended. In a separate bowl, mix together flour, salt, and baking powder. With the motor of an electric mixer running, slowly incorporate the dry ingredients into the egg mixture. Fold in the cranberries and pistachios. The dough will be sticky. Wet hands and turn the dough out onto a work surface. Shape into 2 logs 2 by 12 by 1 1/2. Bake in the center of the oven for 35 minutes or until light brown. Remove from the oven, cool slightly, and cut the logs on the bias. Place the cookies on a baking sheet and bake in a 250-degree oven for 8 minutes on each side or until dry.