[PATCH] loader: fix build with --without-pthread