Qt 5.2 compatibility, autostart option for Windows

Successfully compiles with Qt 5.2.1 on Windows