malloc.h is supported in Linux, required in newlib (I guess) and at least for msp430 and not supported in OSX/BSD. I don''t see the point in complicating this further.