All of the profile library source files include prof-int.h last. prof-int.h includes the platform specific headers which define configuration options such as HAVE_STDLIB_H which are used to conditionally include other header files.