Geometric phase and the influence of the Dzyaloshinski-Moriya interaction in the one-dimensional quantum compass model