Supersymmetry breaking, M-theory and fluxes