Fix g++ runtime compatibility.
Fix tests/Makefile.
Re-generate distribution.