package hdf5: disable shared build and workaround for generated sources