improve HDF5 build script
deduced that HDF5's CMakeLists has problems including
- cannot always build in parallel
- rebuild avoidance is completely broken
as a result, workaround these issues by using one-time install scripts. Other projects have forked HDF5 to workaround these issues internally but we would like to avoid yet another HDF5 fork.