QuartzSupport and header changes for OS X.
Merge pull request #58 from metajack/mac-platform

QuartzSupport and header changes for OS X.