Fixes and workaround for using a Classpath KJAR