Manage thrift dependency

I think automatically taking care of the thrift dependency would make it slightly easier to use.
I didn't manage to arrange it with distutils, so I switched to setuptools.