added premake build script and fixed gcc compile