Added the CMake check for large file support and moved relevant macros to config.h.