SFM: Include missing headers
SFM: Fix threading macros on Windows
Merge pull request #113 from andre-schulz/sfm-win32-fixes

SFM win32 fixes