Modified to work with Node(<=0.10.28)

Added cast 'uv_after_work_cb' to match with libuv