few fixes to cmakefiles
work on io