Fixed [ 898739 ] libhdf5 dependency breaks -cc reps.
Now uses mkoctfile to determine include and library flags.