solve part of link errors.