Fix build with GCC.

It seems to be more picky than MSVC in this case.