Fix compiling/linking issue