Spectral properties of non-selfadjoint degenerate elliptic ODE's