Add support for GCC atomic operations for iOS