Fix encoder build on Linux