cmake: fix incorrect detection of protobuf-c library