configure: add soversion variable, move version variables to top for easier access

No match.