Fix FTBFS with node.js >= 0.10

Signed-off-by: Andrea Piccinelli <frasten@gmail.com>