Add -XstartOnFirstThread for mac

This is a limitation of Cocoa.