Revert "Fix undefined reference at the linking stage"

This reverts commit c5a3ea501ff48fbd498f100e19c4593a90b053c7.