Add bundle type role to Info.plist
Fix build with xcode 6
Move instance check before QApplication constructor

So there will be no second dock icon appearing for a second