Added basic support for Mac OS X