Add missing include of stdlib.h to fix gcc complaint about implicit declaration of 'malloc'