Fix issue with node 0.10.0, add debug options.