sstate fixes

Henning,

These commits make meta-java build with sstate enabled across build machines.
Please consider them for inclusion

Thanks
-Khem