Fix an undefined pragma warning on non-msvc.