The add_rules_str() method consumes self and returns a new Compiler, following a builder pattern. Updated to reassign the returned compiler instead of treating it as a mutable method. This fixes the compilation error when building with yara-scanning feature.