de Rham cohomology with locally constant coefficients and the degree of maps between manifolds