Improved the makefiles.

* by default builds a release build
* debug target builds with debugging symbols
* static target builds a static version linking statically termbox and libstdc++