Fix for PATH_MAX not always defined.
Add a .gitignore file.
Merge pull request #1 from astrorigin/master

Minor fixes