Fix build script.
Bring back accidentally removed static functions on Curve.