fixup mac linking
test that everything is correctly linked