Fix compile error

The previous os layer rewrite with libuv cause compile error, 
because uv_err_t is not a typedef of int but a structure.

Signed-off-by: Thynson <lanxingcan@gmail.com>