Closes issue 350.  Fix stat64 and malloc.h problems

Fix the stat64 issue in plugins/checksum/checksum.c and remove the include of malloc.h in both that and src/version/version.c.  The caused problems in freebsd.