Added new encoder abstraction, fixed CELT 11.