restructure clib build make files