Add atomic implementation for PowerPC (not MacOS X)

Straightforward port of the ARM implementation, to be used on Linux/PPC.