move osx requirement into subspec