Adapted cmake settings to work better with HDF5 on win

Also made cpack installer add lib file too
Merge pull request #373 from balint42/master

Adapted cmake settings to work better with HDF5 on win