update for nan@1.2.0 for Node 0.8->0.11+ compat