Adding support for Mac OSX with quartz