Using different atomic compare-and-exchange functions on CPU64 and other targets