Added support for ENC as external lib