Fix building on GCC/MSVC.