Replace the old math lib with the new.