Preheat oven to 350°F.
Combine nuts and 1/3 cup flour in processor. Process until nuts are finely ground.
Transfer the mixture to the bowl of an electric mixer. Add remaining 2 cups flour and next 3 ingredients to the bowl and mix until combined.
Add the margarine and, using an electric mixer at low speed, blend ingredients until coarse meal forms (this will take several minutes).
Add egg yolks and vanilla. Beat until moist clumps form.
Gather dough into ball. Roll out the dough on sheet of parchment paper until it is 1/3 inch thick.
Cut out cookies using a round cookie cutter. Using a small cookie cutter or the back of a cake decorating tip, cut a small window in the center of half the cookies.
Transfer cookies to parchment lined baking sheets, leaving 2 inches between them. Re-roll the scraps and cut out more cookies in the same way.
Bake cookies for 10 minutes, or until golden brown. Let stand one minute and then transfer to a cooling rack.
Once completely cool place a teaspoon of preserves on top of each solid cookie and top with a cut-out cookie.
Dust the tops with powdered sugar, if desired.