Added --with-curl option to configure.