added cstring include so that code compiles in gcc on Ubuntu 14.04