Fix linux build errors.