Set up compatibility with node 0.10

Closes #127