Fix C linker issue