Adapted cmake settings work better with HDF5 on win

Also made cpack installer add lib file too