Add nan as dependency.
Make unix code compatible with node v0.11.x.
Fix the header searching problem.
:lipstick: Remove trailing spaces in lines.
Make win code compatible with node v0.11.x.
Do not use ranged for in windows code.

It's not supported in VS2010, and VS2010 is still being used widely.
Update mocha to v1.16.2.
process.getgid is not available on Windows.
Merge remote-tracking branch 'zcbenz/master'