choose the right libpath for debug or release/production
arrange env variables in logical order
configure PROGSUFFIX to include arch and .nexe
added missing "local" to declare n
fix indent
indent fixes
engine: validate pre-conditions on extensions

extensions are matched by searching for the '.' char and thus must
start with this character.
some documentation
don't put anything else before the extension for object files