add strlen function
change riff.c to riff.cpp (for arduino compatibility)