Fixed last few bugs before GM release

* Added fixes for test samples to exit as a process when the window was
closed.
* Fixed tntbuild on windows; successfully passing tests in addition to
OS X version.
* Moved compilation optimizations up to full, passing all tests on OS X
and windows.
* Fixed build script on windows to not regenerate project files every
time.