In src/h5core/h5_err.c the header file stdlib.h must be included. Otherwise we get exit(2) is not defined on all systems.
src/h5core/h5_err.c
stdlib.h
exit(2)