New Primitives for Actively Secure MPC over Rings with Applications to Private Machine Learning