fixed building for older osx