fixes patch about cast for the case of __STDC_ISO_10646__
add include <cstring> for strcmp().
include <cstring> for strncmp().