Adds missing declarations from the porting process.