Removed unneccessary variable to store return values.
Rewrote print_stats to return a pointer to a static char *
Added stack smashing protection, enabled by default.
compiling requires gcc, now. Haven't tried with any other compilers.