CMake 2.8.7 compatibility

The qt5_use_module thing works differently in cmake versions < 2.8.9 so
we need to account for that.