fix linux build warnings