Include string.h for strlen with cpp backend

Fixes  #1458.
Thanks to reactormonk.
This should be done for the C target, too. The warning is simply suppressed because the C compiler is called with `-w`.