cmake: only checks for Qt4 if not being used as submodule
Merge branch 'master' into no_singleton