Minor fixes

Define PATH_MAX in case it's missing. Also add a .gitignore file.