Support gcc47 atomics

yep. Exactly what it says.