Fixed CXX flags.
Fixed MSVC issues.