Compilation fixes under MSVC.