Modify Markov Java/C to compile correctly