Fix link dependencies