build: Minor API fixes to fix build problems on AIX.