Added the CMake check for large files support and moved LFS macros to config.h.