Fix malloc/free
Merge with old left behind branch
Compiler warnings
Update Makefile.PL