Similar as above - perhaps I was a bit too hasty in suggesting MCS_resolvemodulesymbol should take an MCStringRef as the symbol name. Symbol names have to be (native) C strings and I don't think we ever use a non-static string as the symbol so MCS_resolvemodulesymbol() should probably take a const char * as the symbol.