compatibility for libuv interface, update nan to 1.2

following #31