Use a native-platform backed ProcessEnvironment implementation when native-platform is available, instead of the jna backed implementations.
Moved tweaking of process handles closer to where it's needed.