Kai771
Previously the emulate mode compiled with no error in my Gentoo x64 machine. But it fails on my freshly installed x86 Ubuntu today. I modified the Makefile and now it works on my Ubuntu too. You may want to checkout the latest code from the official repo
Still I have no idea why it worked on my Gentoo before this modification. I just moved all the "-l" to the end of GCC call.