Add define to allow disabling threading entirely, for when using an
iostream-based client.
Merge pull request #339 from jefferai/master

Add define to allow disabling threading entirely