more cmake files and fixes to compile ping example