Fix "clean" autotest on OSX.

Dynamic library names are different on Mac.

Change-Id: I451d61765a91213e5d2e6141848cb2f00cb0d2d9
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>