update cmakefiles + enable compilation of examples