Include the lua subdirectory only after CMAKE_C_COMPILER has been set to the cross compiler. Otherwise, cmake will use the build machine compiler to preprocess dataconstants.h, which breaks on some systems and can cause problems due to different machine dependent types.