The Role of the Synchrotron Component in the Mid-Infrared Spectrum of M 87