Use cstring instead of string.h for C++