Fix building using non-MSVC compilers.