added implementation of kill() under windows