build files for qmake, fixed some warnings