Define _GNU_SOURCE for getline(3)
Restore flags not supported by gcc 4.2
Remove generated files and add .gitignore
Clean up more generated files
Add instructions to build on FreeBSD