Heterotic fluxes and supersymmetry