fix linking using clang