minor fixes for osx/ios builds