Add OSX support

See #3