Fix compilation when using Qt binary frameworks