More attempts to fix Mac OS seg faults, and not much luck. Something is wrong when context switching between threads, and it won't give good errors to help