codec: fix 32-bit build for simple codec.

Fixes #3