fix all bare malloc() realloc() etc calls to have a proper cast in front
6 files changed