Add preprocessor define for building node.js extensions.
Add missing return statement in v8 code template.
Add an ifndef-guard to resolve a warning when building nodejs extension.