Whenever a structure or building has been erected or maintained as private property within the limits or boundaries of a public street or highway for such a long period of time that the seizure, removal or abatement of the same by the municipality having jurisdiction and control of such street or highway, without compensation to the owner, would work a great hardship, the governing body of such municipality shall have full power and authority, in its discretion, to award compensation to the owner of such structure or building, in such manner and upon such terms as it may, by resolution, determine. The power and authority hereby granted shall include the right to defray the cost of removing, abating, vacating, repairing or rebuilding such structures or buildings.
N.J.S. § 40:67-12.3