bugfixes for windows 

- thanks to Javier Montoya 
 
A full update for reduced-inference will follow soon.