Include string.h for strlen with cpp backend

Fixes  #1458.
Thanks to reactormonk.