This allows DragonflyBSD and Ubuntu 18.04LTS to compile. There are Qt >= 5.10.0 checks in KeyboardTranslatorTest due to qCompare errors. (cherry picked from commit ed8847ec)