refactor setup and get it to build cppcms