Adjusted some flags to build on Windows.