Mac OS X 10.10 compile fixes

Important: Needs Qt 5.3.1 or newer and CMake 3.0 or newer to work on 10.10!