Added cstdlib to the includes in ldtCommon.h

It appears that only the first if statement in each function in
ldtCommon runs, no matter which other item is selected. This may need to
be fixed by going to either switches or making each task its own
function