HDF5: add support for fortran2003

Closes #18317.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
avian: remove explicit javac check