src/netcp.c: fix double-free bug
src/netcp.c: don't use getprotobyname on Android