Samba fixes and cleanup for helix

This series
* cleans up some old sins in CSMB* functions
* fixes empty password support
* Revert breakage of truncated reads
* uses system functions for stat/time conversions instead of custom