Add support for OSX

#4