Filling and lid mounting machines