Fixed bug with RPATH option building on linux
Changed --ldflags to LDFLAGS in configure.ac.

First one might not be guaranteed to work it seems.
Adding .gitignore files
Merge pull request #1 from dabookshah/master

Fixed bug with RPATH option building on linux