Fix CMake build

- Add CMake macro and use it to link Carbon and Cocoa
- Use "APPLE" CMake var instead of "Q_WS_MAC"
- Add *.mm files to the CMake source list
Merge pull request #2 from v17al/mac-support

Fix CMake build