Minor fixes concerning the use of ITK's own hdf5 libraries.

@clangguth Could you compile it on windows and merge the pull request once if successful?