move premake to build/premake
fix layer init bug