Cleaned up Curves code.
Updated builds.