Optimal cosmic microwave background map-making in the presence of cross-correlated noise