The trick to multithreaded emulation is to include thread.h more than once. Also, rewords some awkardly written messages.