Added #include <string.h> to make compiler stop complaining of memset() and memcmp...