Civ4 consists of a number of software components.
In Civ4 there is a central suite of software that manages all the interfaces with the graphics, sound, files and other system services on your computer. It provides a basic framework that can, in principle, run any game.
There is also a separate library of software that provides all the logic that implements the core game rules. That includes the number of civs that can play, the AI decision logic, how game saves are made and read, and lots more. In the Windows version, this bit is packaged as a separate file - a DLL file called CvGameCoreDLL.dll. Firaxis have released the source code for this library so that modders can change it and recompile the DLL. This allows them to create a very wide range of modifications to the game, including allowing more than 18 divs.
In the Mac version the code in the DLL is merged into the main application framework code as a single compiled file. So it is not possible to separately compile the game definition library, because the Mac version of the framework can't read and use a separate file.
In addition to the above compiled code, the game includes Python scripts that control the user interface screen layouts and their behaviour; graphics and sound files that are used to display all the units and terrain and buildings; and XML files that define the properties of all the game elements and the links between them. These files are identical in the Mac and Windows versions.
The Mac version can therefore only run mods that use changes to the Python, graphics, and XML files. And you can't tell Civ4 to allow more than 18 civs by changing any of these files. You have to so it within the code that only the Windows modders can change.
The Mac version of BtS installs a couple of mods that do extend the 18 civ limit. This was done by Aspyr. It could not be done by anyone else, as no one else has all the source code that is required.
Aspyr compiled two additional versions of the game software that incorporate modified CvGameCoreDLL code to play Rhyes and Fall and The Road to War. They embedded these extra compiled software files within the BtS application bundle. So the BtS application actually contains three separate copies of Civ4 BtS. You can see them if you right click the BtS application and select "Show Package Contents". The additional copies are in Civilization IV Beyond the Sword/Contents/Resources/