Fixed some link errors