documentor; compiler/libec: Fixed crashes opening libraries
- Since daa244a0463d1dd97a42826cb44ff05278caf323 menus were getting messed up
  and Documentor would crash on exit after opening an ecere.dll/.so