No. 19 Louisville holds off North Carolina 39-34