include cstring in C++ template