added pthread=0 to remove compiler error