Build in support for ccache (USE_CCACHE=1 as an environment var)

This matches how ccache is enabled for cm-10.1 builds which makes
for a simpler build environment.