Add cgo ldflags for building indexer