Linearizing stochastic systems with the Koopman Operator