In a medium bowl, add the flour, brown sugar, cinnamon, salt, nutmeg, ginger, cloves, and allspice, and stir until they are well mixed. Next, add the softened butter and molasses, and mix them in by hand until you have crumbs with some larger pieces. Finally, mix in the chopped hazelnuts and pecans.