Build gem link if needed