pkg-config version fix

Closes #1 

More simple configure crap

Just needs a bit more of testing, maybe. The git version string part is in a separate commit since it might get rejected upstream, heh.