Fix StateCompiler to use classloader of interface

Fixes an issue loading the ML plugin