I’m afraid you won’t be able to compile cpp code if you don’t have the right version.
You might be able to compile using it as a shared library but I’m not sure it will work. You might needs to get the the pre-cxx11 ABI version though.