For some reason when building you have to run cmake .. in build directory twice. Otherwise config.h is not generated properly.
