some minor improvements

Some small improvements:

* basic .gitignore rule
* Makefile now obeys LDFLAGS from $ENV
* squashed cc-warning about unused result from fscanf()