Make NativeModule work with node v0.10

@kraman