libcurl sources adopted for android