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(). CMake changes are excluded.