Update to work with nan 1.3