Moving mac process transformation code to wxEntry.

The commit 684e773 broke wxPHP on OS X. I have moved the OS X process transformation code from OnInit to wxEntry with the help of @jgmdev.