Added functionality for compilation versions

CMakeLists will now change based on a parameter, JV expected values
are 1.6 or 1.7, but will support 1.8 eventually, only checked by the
java compiler not cmake.
Also changed clear.sh to be executable, haven't used it before this
point so it was overlooked before.