linker fixes for clang builds