Revert "Revert "build: use the system's ccache by default""

This reverts commit 9501be87a7b2a44a7935de3d5a74c2ffc4fc2141.