rbthreads osx fixes