Cubs' losing streak hits 10 in 1-0 loss to Pirates