and that seems to be the root of where the calls split into the various platform specific implementations such as
which is different in:
It might take me several days before I understand all the details but if someone gives me a pointer I might be able to work this out...
The other matter is about figuring whether we are running a mkbundle executable or running an assembly directly. I figured using the process name is perhaps one of the only ways because at least on the OSX this value is set to the runtime executable rather than my program's name unless if we have a mkbundle package. But unfortunately this logic breaks due to the above mis-match in the platform specifics... Any other suggestions!?