[AddCompilerFlags] fix detection for supporting "-rdynamic" for clang