Fixes Windows premake and build errors