Remove dependency on deprecated OSX api

Closes #7