Fix linking and rvaluer reference usage