Port Qocoa to Qt5

Makes Qocoa compile against Qt 5, tested with
Qt 5.2.0 and OS X 10.9. It requires QtMacExtras for
QtMac::toCGImageRef().

I left out CMakeLists.txt changes so far as I'm unsure how you prefer Qt4 vs. Qt5 to be handled in there.