Remove some STL components on windows, and compile with msvc18 compatibility options