Fixed to compile with MSVC.