fixed up premake and gradle builds, added basic test