implementation of Futures
modified build system and other data for threading support