(b) if required by the minister, an agreement in writing, made between and executed by both the applicant and the owner of the lands to be affected, whereby the applicant undertakes to pay to the owner compensation for any damage that may result to the lands or any buildings or other improvements thereon in the course of and arising out of the preliminary work to be authorized by the permit.