Move threads from ext/ to dist/