Fixed compilation errors in APICodes file