curl from google, with a small edit to make it build on ndk