Fix build errors

Changed curve names from 'CubicCurves' to 'CurveCubic' and so on, as
well as other build errors.