Adds a number of porting typo fixes