Patches for JDK8 support, and move up to 0.5 version.