Fix compile on linux + qt < 5

Change-Id: Iadb7df3cdb32180f78dace7bc11c7c673399c65b
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>