Axels fix: configure script now checks for empty LIBS and LDFLAGS.