First messy commit.
I needed this library in a Qt based project (win & lin) and I had a tight deadline.