Move pthread to external folder