Fix for the message queue (reported to Jules, possibly JUCE will have a
fix on its own and it can be removed)