OLS estimators are linear if explanatory variables are dealt as fixed, as in the usual text books it is preached, practically we can't fix a variable except in experimental studies. Some say that they are assumed fixed for mathematical convenience. Now if explanatory variables are dealt as random variables (as in the case of endogenity, we don't use the ols estimator directly) the distribution of the ols estimator may not be in any known form (I think) due to the product of two or more random variables (keep in mind the formula of OLS). So how can we say whether explanatory variables are random or fixed, it doesn't matter?