enable serial HDF5 builds and use correct configure option for Szip

This builds on top of @besserox's PRs #286 and #290, I only added some minor cleanup.