fix compilation errors in the hmm and auto encoder pos tagger