fltk build fix

Fixes #33093

Tested with tiger-vnc which is uses fltk