Improve DSocket and DSMTP libraries