Warning fixes and new build system (Qbs)