upgrade to nan@0.2.1 and fix for node@0.8 compat