Support private fields, unsigned array indices, moved libc and closures

The first few of these allow compiling with a recent rust.  The last few are cleanups.