Absorption features in the 5-8 micron spectra of protostars