Fixed 40% of engine compilation errors.

Making solution compilable.