upgrade definitions with latest nan

Closes #145