Fix build on non-G++ and non-X86 systems.