properly implement malloc header emulation to avoid link issues.