Added missing #include <string.h>