configure: only build the test tool and ld-iscsi iff we have shared libraries

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>