Fix some Windows crashes on h5py