clean sparse file from testsuite
fix inclusion of subdirs
fix build of java_modular with OpenJDK
Merge pull request #1809 from shogun-toolbox/feature/fix-java_modular

fix build of java_modular with OpenJDK