Stock futures inch higher after major averages close lower, S&P