Build and runtime fixes

Hi,

This pull request includes patches needed to build a java2-runtime with the Yocto/Poky master branch.
To run java applications on the target the patches from Amy Fong (see https://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg34182.html) are also required. Without them the openjdk-7-jre couldn't find the libjli.so library. The patches are also included in this pull request.
The openjdk-7-jre has been tested on a qemux86 image.

Regards,

Martin