Use uint_fast*_t rather than uint_least*_t
Parse the movetext section.