Adds an error for when you pass an out of range base, instead of segfaulting.
Adding node-gyp support for node 0.8
Adding an error for toString instead of segfault if base is out of
Thanks for the patch. I cherry-picked out the exception part since I already merged a patch for node-gyp.