fix linux build issues