always redefine fstat to winfstat