windows: fix time conversion in stat
Revert b3e0ad4, 149d32c, e99fdf0 and ea9baef.

Detaching doesn't work yet, the setsid() call fails and leaves the child process
attached to the parent's session.

Revert "test: Add test case for spawning detached child processes."
Revert "win: Implement options.detached for uv_spawn() for Windows."
Revert "unix: Implement options.detached for uv_spawn() for unix."
Revert "Add "detached" member to uv_process_options_t to denote whether a child
        process should spawn detached from its parent."

This reverts commit ea9baef95ce2208dbf65cba0ddcd90be5492a648.
This reverts commit e99fdf0df6738dc9addc432f091896d7f37f7731.
This reverts commit 149d32cb96592fc5037c7072e1a3ab9a3fa888a6.
This reverts commit b3e0ad4db850a76d1d2c722f93402b3b9f453c55.
unix: don't rely on libev to track timer state

An obscure libev bug sometimes makes it miss state changes. Keep track of the
state ourselves.

Fixes joyent/node#2515.
unix: fix fs_event refcount bug on darwin

The event loop got unref'd twice when the handle was closed.
unix: don't rely on libev to track timer state

An obscure libev bug sometimes makes it miss state changes. Keep track of the
state ourselves.

Fixes joyent/node#2515.
unix: fix fs_event refcount bug on darwin

The event loop got unref'd twice when the handle was closed.
windows: return UV_ENOTSOCK when doing uv_pipe_connect to a file
test: make pipe_connect_to_file succeed with ECONNREFUSED
win, unix: add uv_dlerror() and uv_dlerror_free()
build: link against libdl on linux
build: add missing libs required to compile under MinGW

GetProcessMemoryInfo is in psapi and
GetAdaptersAddresses is in iphlpapi
Fix typo in uv.h
cygwin: we need to include uv-common.h for uv__set_sys_error()
test: fs: add tests for read EOF

This fix was merged without tests:
https://github.com/philips/libuv/tree/fix-read-on-windows-to-handle-eof

So take tests from igorzi:
https://github.com/igorzi/libuv/commit/46024bf33dcc7fc922378fe0d8b4f59f4c2cd605
Map EBUSY and ENOTEMPTY errors
Merge remote-tracking branch 'origin/v0.6'

Conflicts:
	src/unix/core.c
windows: initialize ares handles list

We need to initialize the ares handles linked list or else bad things can happen
when we try to perform async lookups.
Windows: avoid uv_guess_handle crash in when fd < 0

Happens only when using a debug version of the crt.
Test runner: avoid process_wait failure when the test process didn't start
Make test-tty pass with redirected stdio