But it works with kodi, so, problem is resolved, thank you all.
@dkg I would use LD_PRELOAD instead of replacing system libs
In general, if someone is interested in headless kodi - It works nice even without installing DE.
@dkg When I tried to build libcec from github repo I had some headers missing related to RPi implementation, so I disabled RPi API at all. Built cec-client can't find cec device in the board. Did you have similar issue? Did you have additional setup for libcec build?