Fixed segment fault error (NULL pointer) caused by dlInsertEnd (renamed to dlAppend);
Optimized string buffer resize performance. dsbCat, dsbPrintf, etc
called dsbResize(), dsbResize hence called realloc() too many times (when attaching a 2.8M file, dsbResize() is called about 1 million times)