core: attempt to fix Qt4 support, #2