Fix for compiler errors in GMock tests with non-MSVC compilers.