added include <cstring> to reenable compilation under linux