I really suspect that your env is wrong.
Assuming this is Linux, in the root env, try:
ldd -r $FGLDIR/dbdrivers/dbmifx.so
and check if all Informix shared libs are resolved.
I tried to connect with a little program under root, and the Informix driver loads without problem when executing under root, but then I get an SQL error from the server because the root user has no privileges to connect to my db (as expected):
fglrun ifx.42m
Program stopped at 'ifx.4gl', line number 3.
SQL statement error number -387.
No connect permission.
SYSTEM error number -111.
ISAM error: no record found.
I have really some doubts about executing programs as root ...
What version of Informix IDS is this?
You may at consider to create a database user with CREATE USER and connect as this user with CONNECT TO ... USER ... USING ...
Seb