Feels like I'm following you...
sudo apt-get install libssl-dev openssl
... should resolve those two issues for you so you can compile.
If you want to downgrade to a pre-built binary instead, try:
sudo apt-get install tvheadend=version
e.g.
sudo apt-get install tvheadend=3.3.484~g9370273~oneiric
... would install the beta version if you have https://launchpad.net/~adamsutton/+archive/tvheadend-beta installed as a PPA.
Now, the challenge might be to find a PPA containing the version you're after - I just checked Adam's stable PPA and that's reporting 3.2.34. You might have to compile your own.
I still wonder why you're getting problems, though, so maybe we can get some attention here from someone who can help if you recap the issue.