I wasn't able to reproduce the first error you got. But the
second error happens for me.
Somehow, invoking mxmlc.jar from a directory other than the
flex frameworks directory leads to an error where it's looking for
files relative to flex frameworks.
I got around this by specifying a dir to invoke the VM in.