Proper configure

The single Makefile was becoming unmaintainable and I was worried about mixed configuration release builds. Using a Makefile generation step negates these concerns and issues.

Also added code to generate VERSION defines build-wide.
debug builds use non-squished Lua