Abstracting UNIX functionality to its own library