Fix OSX threading... ugh.