Generate config header + version API

- Generate (and install) header file with results from configure run.
- Expose version number at compile time and added methods to query version of linked library.