Use LDLIBS for specifying the torque library

Apparently the LDLIBS variable is the correct variable to use when
specifying the libraries to link against, using this variable makes
building with gcc-c++ on ubuntu work properly.