Add back httptask support for osx.
Merge pull request #841 from eiriksm/httptask_osx_build

Add back httptask support for osx.