fix unix build after recent changes from Windows