init multithreading support