MoRE & BB10: maLoadResource() now works even without a filename.

This fixes maLoadProgram(), which would previously cause a runtime crash.
Note that maLoadResources() is still broken.
libc-suite: workfile improvements.

Now most programs will not be rebuilt every time due to a modified resource file.
Fixed libc-suite loader support on MoRE and BB10.
Shared maLoadProgram() code between runtimes.
Added close() functions to Syscall and ResourceArray.