Added config.h.in plus checks using cmake