added socket() / sclose() checks to the memdebug system
uses the "internal" mprintf() routines for formatted output
now exits and alerts on bad uses of strdup() and free()
now includes stdlib.h
compiles on Linux now
added for memory leak debugging etc
123456