Fix compilation errors in APIFormation