only require httpclient on unix