added config.h generation to build

added more precise control over the compilation