Revert "don't put removed files in the distribution"

This reverts commit 063a346883f98f02387cbb17a69d99fd4e296b51.
Revert "clean the build of the jarfile so that it works with cmake >= 2.8.12 too"

This reverts commit 9d40a7a7a470739d02bf4ad99c21ff55b4c9fe2b.
Fix build of jar file with cmake >= 3.12 (try #2).