cmake: fixed some differences between handling Ice 3.4 and 3.5.
build: fixes FindQwt cmake module to check that Qwt is >= 5.2.0.