added few includes for multithreeaded support