I don't think that sexual orientation, behaviour, self-identification or genetic code have anything to do with sex. It's only a definition concerning the genitalia you were born with. If you have a penis you are male, if you have a vagina you are a female. People with both or neither can't be defined as either male or female, but something else. Unless of course we choose to change and expand the definition, in which case what is male and what is female?