change config and makefile to qmake