added -XstartOnFirstThread parameter to run and debug tasks on Mac OS X, added same parameter to macosx-product launch scripts.