Fix avro-c library linking bugs