Sort out LDFLAGS/LIBS

This fixes compilation with Cantera on Linux for me.  It needs to be
tested on OSX before being committed just in case I regressed
something there.