Clean up the makefiles a bit and make them OBJDIR-safe.
When creating a package, compute the flatsize if it is not specified
in the manifest.  Note that there is just a short leap from here to
allowing the sizes of individual files to be recorded in the manifest,
but that requires an API change.
speling ;)