im also using centos 7 and it works from me
i used this steps
try this: How To Install GCC on CentOS 7 | LinuxHostSupport
after that then this :
type: gcc --version
"if you install gcc version upper than 4.8 you need to type this:
type this :"
scl enable devtoolset-7 bash
the no 7 represent your gcc version it depends in what version you are using , you can check it by typing gcc --version
then
./configure
make clean
make server