Add a few fairly obvious API changes I noticed while porting some old code.