set it to be an ancient. peons can't repair night elf buildings.
or make it a stationary non-building.
whatever you choose, you will get an error when you try to repair it, for example "must target a building" or "can not target ancients". if you don't like the message, open up game interface, find the message and change it.