Cr2 in density-functional theory: approximate spin projection