Least-squares spectral element methods for compressible flows