[ASan] Explicitly specify -ldl/-lpthread in RUN-lines where needed