options: fix for compilation when encoding disabled

HAVE_* flags are always defined so ifdef will never work.
They should be checked with their values.