Allow makeobj to compile under osx w/ gcc

Added a simple makefile to recreate make.bat usage
and removed unused import on makeobj (malloc.h)