check of HAVE_CDDA_IOCTL_DEVICE is wrongly removed during port, restore
it and replace usages of deprecated cmake macro with new one.
Also QUrl::query() and KUrl::query() behaves differently, while QUrl::query()
will not return '?' in return value.