Updates to libcurve