call TransformProcessType() later in the launch process

hopefully fixes #1152
use the Cocoa API to show the Dock icon
Merge pull request #1414 from skurfer/dockIcon

change the way the Dock icon is displayed