markov_algorithm: fix build