fixed bad library linking