Fixed NanInitPersistent for older versions of Node.