fixed runtime linking