add support for Mac OS X