Fix ccache compilation, standardize, closes #831