pragma warning fix for non-msvc compilers