Tweak layer, kernel, and autogen to work with slate and x86-64