You can do it if you install Windows in Parallels or Bootcamp, but as Xyth has said, it will only produce a Windows compatible DLL.
Don't be fooled by the DLL file that's installed with the Mac version of the game. That's only there so that Firaxis' checksum tests produce the right answers. It doesn't actually execute.