I had the same problem and I solved it defining the macro FLTK_1_0_COMPAT (I added -DFLTK_1_0_COMPAT to all Makefiles).
Compilation was then fine, but the emulator does not seem to work properly. Mouse events in the application area are not detected (insted, if I click on the device buttons, they are).