Fixed linker errors when using the C library.