Fixed some bugs and trying to make plugin use the compiler classpath