Add support for OS X

As discussed in #9