It seems RHEL needs BuildRequires: gcc-c++ too