CMake: fix JAR package generation

The generated JAR was containing the absolute path of the library, instead of the Java package path, and so was not usable.