Cmake files fixed and improved (Qt support)