Fixes in NanCallback

This is for ooold versions.