1. Make sure configure can find sys/stat.h: Modify bcl2fastq/src/cmake/macros.cmake Find the last block: # # Macro to find libraries, with support for static-only search # macro(bcl2fastq_find_header_or_die variable file)