If you are ever building packacges under RedHat Enterprise Linux or Centos and you get the error
“Your platform is not thread-safe”,
Make sure you have the following packacges installed along with the prerequsites.
gcc-c++
libstdc++-devel
redhat-rpm-config
Hope this saves someone a few hours of pulling out hair