Fix runtime linking