Add inline kernel building and fix build

Change-Id: I9af191708d27729a061b3f4f0a714dea0f4459c3