Use rem_pio2 from openspecfun. Allows other libms to be used again.
Fix #5365