Tweak build harness.

Specifically:

  - Allow for manual specification of CXXFLAGS.

  - Improve build summary.

  - Remove unnecessary --with-cxx flag from ./configure
Sequentialize segment unpacking.
Fix TOCTTOU issue during directory creation.
Add support AddressSanitizer and LeakSanitizer.