Ensure OSMesa is linked.