configure: change LIBS not LDFLAGS when checking for libs
configure: change LIBS not LDFLAGS when checking for libs

Closes #289

Patch-by: maurerpe

libssh2/libssh2,libssh2/libssh2,libssh2/libssh2,libssh2/libssh2