various fixes

This fixes https://github.com/pwman3/pwman3/issues/6, adds a .gitignore to the project, and fixes a bug that prevents the program from running on anything other than OSX