Compiler fixes for MSVC.