support 0.8.x and 0.10.x and wait for nan-1.1.0