Added support for multithreading to the posix arch
Fixed merge conflicht with posix threading support