Check for write_chunk errors.
Tweak libtool call for compatibility with older tools.
Remove bad semicolon
Remove unused timing code from tests/systemtest.cc.