Fix compilation error on node v0.10.x.
Implement on Linux.
Be correct on system calls' return values.
Merge pull request #8 from atom/linux

Add support for Linux