Use stdatomic instead of gcc-internal atomics The __atomic operations are internal to gcc and not necessarily supported by all c11 compilers. Use the atomics in stdatomic instead. Signed-off-by: Nathan Hjelm <hjelmn@google.com>