Enable ppc64 ppc64el and possibly others
This MR contains 2 commits : a generic fix for #813559 and a use of it for ppc64/ppc64el. Similarly to ppc64*, changing the configuration script could allow to build on other arches that have gcc atomic built-ins.