osx: add a way to compile for older versions of OS X