Fix Linux compile issue

This commit fixes the linking issue on Linux caused by specifying the correct linker flag to the gcc toolchain.