Fixed possible crash on startup
Fixed compile with Qt 5.2