Title: Far-infrared observations of compact H II regions and pre-main sequence objects