This is normal as the headers have changed in newer versions of hdf5.
Before, you have /usr/include/hdf5.h (cf http://packages.ubuntu.com/trusty/amd64/libhdf5-dev/filelist).
In vivid and above, you have: /usr/include/hdf5/serial/hdf5.h (cf http://packages.ubuntu.com/vivid/amd64/libhdf5-dev/filelist)
Example of error here: http://build.ros.org/job/Kbin_uW64__opencv3__ubuntu_wily_amd64__binary/1/console
This is a duplicate of opencv/opencv#6296 but for opencv_contrib.
I believe this is for @cbalint13