The effects of QCD equation of state on the relic density of WIMP dark matter