Fix i686 breakage
replace some deprecated items
Migrate to cargo (p016-p020)