Add .gitignore.
Fix the Makefile.

Reference: http://stackoverflow.com/q/14517147/79202.
Rename `getline()` to `get_stdin_line()`.

To avoid conflicts with systems that define GNUE `getline()`.