shell-common: detect clang and avoid some errors with pip and tox

Python's cc detection is broken in the presence of ccache links for
compilers that don't exist (something that is fairly common with ccache
packages).  This works around that issue, and the fact that clang
complains about unused arguments by default--causing builds to fail.