Coloring graphs to avoid monochromatic cycles