[backends/c] Improved makefile caching and monitoring
[backends/c] Do not try cache in when determining targets
[backends/c] Dispose makefile cache