Adding config class and findlua for cmake