Near-infrared spectroscopy of the Sun and HD 20010 - Compiling a new line list in the near-infrared