Combined pull request

Combines both of my issues ([Fix ubuntu tests](https://github.com/JuliaLang/libuv/pull/10) and a [cherry-pick request](https://github.com/JuliaLang/libuv/issues/11)) into one pull request, hopefully ready to automerge.  If this is satisfactory, feel free to merge, otherwise, feel free to close.