cmake: Remove unused config.h.in generation mechanism

This commit removes files which were created to make it possible to
automatically generate config.h file. This mechanism was never used, so
it's removed now. It also cleans up the config.h.in file a bit.

Change-Id: I2dc2667d88e2ffb9600de6ee03bc837210c88f06