Linking 3rd-party ensenso library is optional

Linking ensenso library should be conditional.