Did you know libxd has been rewritten from scratch? Its successor is called
p8g
and besides performance optimizations it now also supports languages other than C++.
Click
here
to check it out!