build node.js extensions with an 'init' symbol

Hi guys,

thanks to @oliver---- 's gist and his code, I got my header to SWIGify then compile, but only after adding the 'init' function which the node runtime looks for.

I also added two macros, which seem to make sense given equivalent macros for other languages - are they right?