windows porting build fix for linux