src: upgrade to nan 1.2.0

This effectively reverts commit 518052f8; the build error has been fixed
upstream.