SERVER-6514 Only apply -zdefs and --as-needed to shared client library
SERVER-6514 Don't attempt to test shared library clients for out of tree builds