Compiler flag is not supported on Windows.
Add headers to target.
Fix VC2010 errors.