A couple tweaks for Qt 5 on OS X.