[Toolkit.Compiler] Fix compilation errors