Remove unused cc_vlog function
Don't needlessly allocate empty counter_updates data in stats_flush()
Add signal handler to clean up temporary files at unexpected program exit
Clean up stale files in internal tempdir once an hour
Fix clang build warning "shift count >= width of type"
Merge branch 'maint'

* maint:
  Fix clang build warning "shift count >= width of type"
  Clean up stale files in internal tempdir once an hour
  Add signal handler to clean up temporary files at unexpected program exit
  Don't needlessly allocate empty counter_updates data in stats_flush()

Conflicts:
	ccache.c
	manifest.c
	stats.c
Fixed build with mingw

_localtime32 was removed from the runtime because it was only avalible at
some Windows versions.
Maybe the time_t* cast could be used on all systems?