fix some link errors