Swap out old kmalloc for new kmalloc

This new kmalloc should be safer to use with multitasking and ISRs. It also
returns pointers to void now instead of pointers to char.