headers.h defines _WIN32_WINNT as 0x400 (targeting Windows 98?). This hits various problems with recent boost and windows SDK versions, namely 'InitializeCriticalSectionAndSpinCount' definition errors and
this problem with boost filesystem. Does anyone really need bitcoin on win98? (I doubt it'd even run there due to other dependencies). I have modified the definition to 0x500 in my repository (targeting Windows 2000 and later) and suggest the change be applied upstream. The changeset is here:
https://bitbucket.org/dkaparis/bitcoin-cmake/changeset/0f2875f92c12Regards,
Dimitri