Fix compilation issue when compiling with "-Wl,--no-undefined" option