Fixed|Qt|qmake|OS X: Various Qt 5 and C++11 compatibility fixes