add support for build qt4 (dont work) and other minor changes.