Fix build with Qt < 5.10
Because Ubuntu something.something only has Qt 5.9, and we build for that on Launchpad.
See https://launchpad.net/~kritalime/+archive/ubuntu/ppa/+build/19298557