fix linux link errors