fix UNIX build