[scan-build] Pass --sysroot through for both compilation and linking.

PR19704