Netbsdchanges

few changes to make it compile and run on netbsd, also a few additions to a .gitignore file