Fix build with libatomic

Signed-off-by: Paul Beeler <pbeeler80@gmail.com>