Cherrypick the deprecated g_module_build_path() from upstream
As of the glib version 2.76, the g_module_build_path() has been
deprecated due to inconsistency of G_MODULE_SUFFIX.
(See https://github.com/GNOME/glib/commit/d941558)
However, we know that the G_MODULE_SUFFIX is clearly "so" on our
unix environment. Therefore, copy and reuse the deprecated function
internally, replacing G_MODULE_SUFFIX with string literal "so".
The g_module_open() has been improved as a compensation for the
deprecation, which takes care of all the possible G_MODULE_SUFFIX.
But we cannot use it instead, as we need full path before calling
g_module_open() to check several file attributes.
Change-Id: I7e939fc3fbe6697cacb3205adc8d453205449ae7
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>