Chris's patch
password bug fix
segfault on error fix
Replace g++ with gcc in OSX
XDS segfault fix

Fixes segfault on using TTXT + XDS
Updated MD