API changes, port of Fl_WidgetC.h and minor fixes