I've just committed a fix so that putenv and getenv actually do what they claim to do. As part of this, master()->_main no longer takes an environment mapping.
I think I've made the corresponding change for that in OCPikeInterpreter.m too, but someone who knows what's going on there better take a look at it, because to me the call to master()->_main seems to be missing altogether.