fixed install of config.h; fixed version strings for config.h

Hello,

Some fixes for install:

1. added config.h to be installed from binary to target install folder
2. moved up version variables - required for configure_file to pick them.