Update to work with nan 1.3

Relies on pull request #37 and change mentioned in #31 to pass all tests.
explicit `~` dependency please