Fix for MSVC and GCC compiler warnings.