Converted codebase to linux (ubuntu), switched to pthreads