Add support for darwin/osx compilation