test: fix (harmless) typo in function name
bench: close timer handles before deleting loop

Fixes a segmentation fault / use-after-free.
bench: report proper benchmark name
windows: map WSAESHUTDOWN to UV_EPIPE

This is a back-port of commit 483043b from the master branch.
bench: fix loop starvation bug

Don't keep writing until the write queue fills up. On fast systems (mine), that
never happens - the data is sent out as fast as the benchmark generates it.
include: export uv_inet_* functions
bench: print benchmark name in async/async_pummel
bench: remove dead and buggy code

Pipe accept benchmarks have never been implemented, remove the code path.

Said code path also contained a bug: it tried to bind to the same pipe that is
bound to a few lines down.
unix: remove dependency on libev
unix: rename UV__IO_* constants
unix: remove libev
unix: set proper loop errno for udp write req cb

Harmonize with stream.c and tcp.c: when a handle is closed that has pending
writes queued up, run the callbacks with loop->err.code set to UV_ECANCELED,
not UV_EINTR.
build: remove unused EV_CONFIG var
build: fix dragonflybsd build, link with libkvm
dragonflybsd: make uv_cpu_info() less broken
dragonflybsd: fix uv_fs_futime()
test: disable fs event test on dragonflybsd

Disable the fs_event_close_in_callback test on DragonFlyBSD, like we do on the
other BSDs.

The test doesn't work with kqueue-based file notifications, the event is
generated before the file is watched. Maybe we should remove it altogether.
build: fix dragonflybsd gyp build

Depends on a not-yet-landed gyp patch: https://codereview.chromium.org/11348152/
linux: use /proc/cpuinfo for CPU frequency

Obtain the CPU frequency from /proc/cpuinfo because there may not be any
cpufreq info available in /sys. This also means that the reported CPU speed
from now on is the *maximum* speed, not the *actual* speed the CPU runs at.

This change only applies to x86 because ARM and MIPS don't report that
information in /proc/cpuinfo.

Fixes #588.

This is a back-port of commit 775064a from the master branch.
unix: fix thread pool race condition

Send the wakeup signal to the main thread *before* releasing the lock. Doing it
the other way around introduces a race condition where the watcher may already
have been pulled off the work queue.