Some more jdk fixes

Hi Henning

Here are few commits that fix some additional errors I encountered when using mips64 as machine as well as newer bitbake 

Please merge

-Khem