Make sure you have libevent 1.4.x, and its development files, installed.
If you're the same person who was asking about this in irc a couple of days ago, I'll answer that here for future answer-seekers: your version of Debian only had libevent 1.3.x. Installing 1.4.x from "backports" solved the problem.
Yes, libevent 1.4.13 was installed, but the development files wasn't. To solve the problem just go to synaptic and install libevent-dev. Now it goes perfect.