configure: check if -latomic is needed for __atomic_*