fix for linux and winnt