add cmake config stuff
fix cmake config file install
fix type-punned pointer warnings