Make build MSVC-aware, provide specific set of flags
Add hacks for compatibility with MSVC