Dll is working pthread removed