Improved the makefile slightly, specify c99, added <stdarg.h>