Fix configure bug which could clear LDFLAGS.  Use __linux__ to detect
linux.  See:

http://sourceforge.net/p/predef/wiki/OperatingSystems/