Replaced ASM atomics with C11