[z2016] Add grayard linking/ unlinking support

(based on commit fb1392b)

Signed-off-by: Nighoo <nighoo@overninethousand.de>

(cleaned version of 8cbaff2)

(based on commit [s1622] - d905114)