cmake: add version information for library
cmake: changes according to modtool
cmake: add install_name_dir for mac libraries