Protect the optional IM disabling calls with #ifdef:s
Update FLTK patches based on feeback from upstream