Linker error -1338 when unused module references undefined function

Starting with version 2.40, if a module references a function that is not defined by any other module, the linker (fglrun -l or fgllink) will stop with the error -1338, even if the module referencing the undefined function is not used by the program. Before version 2.40, the undefined function was ignored.