Fixed the breakage due to the change in error reporting in libuv.

The corresponding commit in libuv is joyent/libuv@3ee4d3f183331.
Also fixed the build commands for libuv on Linux.