Added #include for 'strlen' calls for newer g++ versions.