build fix for systems without 64bit atomic builtins

Triggered for instance when cross compiling to armv6.