updated for nan@1.0.0 release