Fix some warnings
Create the static array to override the malloc function