Added support for newest libuv versions.

Change-Id: I4e9912661f5f6be5717f0d728234a92e761158ba
Reviewed-on: http://review.couchbase.org/30532
Tested-by: Brett Lawson <brett19@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>