utils: fix compilation on Darwin

Although Docker daemon does not work on Darwin, the API client will have
to work. That said, I'm fixing the compilation of the package on Darwin.
Merge pull request #639 from fsouza/fix-utils-darwin

utils: fix compilation on Darwin