Fix configuration to allow build of nodejs extension under OSX.
Resolve some compile warnings.