More fixes for CreateProcess