Add final modifier to some declarations.