fix some link errors

fix some link errors