Fix compile Error. Add buildindex command