add cstring include for g++ compatibility