This adds openssl and curl in Requires.private field in hdf5.pc file.
Otherwise, those libraries were added in Libs.private with full path.
It caused linking errors like following.
ld.exe: cannot find -lC:/msys64/mingw64/lib/libcurl.dll.a: Invalid argument
ld.exe: cannot find -lC:/msys64/mingw64/lib/libssl.dll.a: Invalid argument
ld.exe: cannot find -lC:/msys64/mingw64/lib/libcrypto.dll.a: Invalid argument
ld.exe: cannot find -lC:/msys64/mingw64/lib/libz.dll.a: Invalid argument
ld.exe: cannot find -lC:/msys64/mingw64/lib/libsz.dll.a: Invalid argument
The remaining zlib and libaec are kept in Libs.private with the library
path stripped. Those compression libraries are in LINK_COMP_LIBS in
cmake file and that helps to separate them from curl and openssl.