Inter AMT encoder fix
The fix implements inter AMT encoder, it has unrelated to that changes fixing other compiling issues related to GBI and CABAC stats. It requires verification. Limited tests are running, so the performance of the fix is not yet confirmed.