Use Nan for compatibility with multiple node versions (fix #3)