I solved this issue by adding the following line to the appropriate expat_config.h:
#define XML_DEV_URANDOM 1
Based on the expat changelog, in version 2.2.6 of expat, a change was made:
#208 CMake: Utilize expat_config.h.cmake for XML_DEV_URANDOM
This appears to be the root cause of the problem.