Install sclang to Contents/MacOS instead of resources.
QMacStyle doesn't exist anymore, so this should be removed.  Bug 15936 was fixed as of 4.8.
Make sure sclang becomes frontmost app when QView::front is called. Not sure why this changed in QT5, but this does the trick.
Q_WS_MAC no longer exists - Q_OS_MAC should be used. It's frightening that a #define can disappear with basically no consequences other than a bunch of platform-specific fixes are no longer compiled.