Fixed porting to windows isues when tried to run on linux again