Fix build for --disable-encode