Fixed building of ui.h files on Ubuntu

Reported by Bastian Eicher.