Fix compile under ubuntu:
However, due to the linker issue, ubuntu is not a recommended platform