Fixes false negative with ldd checks when not using SLAPOS_TEST_SHARED_PART_LIST and other small bug fixes.
SLAPOS_TEST_SHARED_PART_LIST