Use C++11 shrink_to_fit in string if available
Update testsuite to correctly require version 2 of the termdebug script
Try to prime the FS cache with the dynamic libraries to reduce testsuite failures
Fix cursor location after shift-tab for single line
Fix minor dist issues