Transforms the compile plugin into the new style (function instead of cl...

...ass).