Changed --ldflags to LDFLAGS in configure.ac.

First one might not be guaranteed to work it seems.
Adding .gitignore files