Fix linking with QT_NO_SHAREDMEMORY
The define comes from Qt headers, so we need to include those before testing for that.
We hit this conditions with Qt 6.6 on Android.
The define comes from Qt headers, so we need to include those before testing for that.
We hit this conditions with Qt 6.6 on Android.