Adds JVM platforms

Note: Only supports jvmplatform (compatibility) target now. Multiple
targets, source targets does not currently work.