app: fix gui-unique.c for OSX and  Windows (untested, not even built)