The compensation of trustees and others shall be determined by the court, and allowed out of the effects of the corporation or other body, under the control of the court.