BLD: fix msvc compiler errors