Workaround for Qt 5 behavior change on OS X which prevented error handling during startup on OS X to not work