fixed all compilation errors associated with ExtractSpectrum
fixed comile erors associated with ExtractTiming