Create and install .pc files (correct pull request)

This pull request is the reworked version for creating and installing pkg-config's .pc files.

This include also the correct version detected by makefile.