Fix building of compilation classpath in .bat script, close #2418