build with ccache + fixes of some old error

Conflicts:

	Makefile