Use c11 atomics where possible