build: make configure fail if both __atomic and __sync are not available