Fixed compiling to set the classpath correctly and the destination directory.