Update premake files

Move things around in premake to fix some errors, still seems to be
recursively duplicating things.

Fix some random warnings.