Fixes for libuv 1.0.0-rc2

** DO NOT MERGE THIS YET**

I just pulled latest libuv v1.x into node and these are the required fixes to make node happy again.

libuv 1.0.0-rc2 will be released soon, once it's pulled into node these fixes need to be applied.

R=@indutny, @trevnorris ?