More generally, add support for platforms with atomics, which not really linked to architecture but compiler features. This may also help on some mips for example.