upgrade curl, fix ssl support