cmake fixes for src/util compile issue and clean up java slicing