On my 24bpp display I got the error message "Less than 8 bpp
not currently supported." which was not truely right.
I have found that a too aggressive compiler optimization was
causing this error in ui_init(). pfm-entries have obviously not
been examined with the right index value.
The appended patch fixes this problem with gcc 3.3.