libhttpfetch: add support for BSD fetch(1)