improve ccache support

Change-Id: I5401f7068d6f830adba293eadbbe307e6bf736f8