Ticket #2995: do not link GModule if it is not required (save space on embedded systems).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Merge branch '2995_link_gmodule_if_required'

* 2995_link_gmodule_if_required:
  Ticket #2995: do not link GModule if it is not required (save space on embedded systems).