Hacked, but works.

It works, I'll improve it later, update it as new releases come out.
It's been days straight between this and mingw bugs so... I'm going out
for a cigarette celebration kids.