OSX

These changes make the recipes work on OSX. I haven't had time to fully test them on Linux, but most of the changes are guarded with the ``osx`` flag anyway.