fix the build failures (we should only delete the jcache directory, not everything)
Add missing libc files to the build.
Merge pull request #2465 from waywardmonkeys/scons-fixes

Scons fixes