Adapt qt cmake files for cmake versions less than 2.8.9