Added quartz support for Mac OS X