osx compatibility; warnings don't break the build