Link against libatomic

Fixes #9