build: check for 64bit stdatomic.h operations too

This fixes the build on platform where the atomic calls can't be turned into
lock-free instructions and thus need the external libatomic library (e.g. mips).

(Debian now defaults to GCC 4.9, so I missed this when I tested the original change since I used GCC 4.8 without stdatomic.h at the time)