RTLD constants incorrect for linux

This patch corrects this by loading the constants at runtime from the C constants used at compile time.

Also updates junit, tweaks a constant in StubLoader and adds openjdk7 and oraclejdk8 test platforms.