Some fixes for using ccache with clang.