Updated Premake 5 build with a bug fix.
Remove unused build code.