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.
Merge pull request #10 from frankosterfeld/work/qt5-code

Port Qocoa to Qt5