Added basic (non-effective) thread support
Removed threads; define half working