improved Windows support for 'npm test'
update mocha to 1.8.x for --ignore-leaks support