Cache flushing for iOS
Symbian build fix: use glib for atomics.