Basic OS X support for Qt (needs work)