Initial work on encoder wrappers, support for x86.