Fixed warnings when compiling with MSVC.