Made compatible with unix >= 2.7
Merge pull request #17 from adinapoli/unix-2.7-compatibility

Made compatible with unix >= 2.7