fix msvc flags and disable some warnings