Covariates in machine learning classificatoin
As a classification task, you should add age and sex as features to your classifier in addition to your body measures. This will incorporate to be considered when learning or making a prediction. 
So your first option would be reasonable.