fix msvc linker & compiler flags