Change the name of the extern "C" TR1 functions so they no longer clash with (possibly inline) std lib versions. Fixes #4828.