core: display curl error after a failed download
core: fix socks5 proxy for curl downloads (closes #119)