makefile: compile with ccache

Change-Id: I0d17f1b13596fb502511645c750b37e8f26ab2ad
warnings: fix 'iso c90 forbids mixed declarations and code'

Change-Id: I966382408241ec853dd7a9d16e9a89f2df1c6cd9