Inline kernel building for mako
Adjust kernel building for Mako