Added missing newlines at end of files.
Corrected signedness issues causing compiler warnings.
Removed -ansi flag from main Makefile CFLAGS.