Update tools.c

Actually, you shouldn't need malloc.h at all, it's obsolete; including stdlib.h should take care of what malloc.h used to handle.

I can't compile lanes on OS X 10.9.1 without this patch.