Add CMake support for test target

Modify the UseJava modules so they support the m option for the jar tool. This way we
can set the Class-Path inside the jar so it loads the core code at runtime. Also rename
the library from libjtox to libjtoxcore.