whitespace fixes
avoid useless typedef
use a destructor for memblock rather than a hack
autofools
fix some compiler warnings, add polish