include <cstring> for mingw and memset