add #include <cstring> so that strlen is properly defined