Since you posted in the section about Installing on a Mac, I suppose you'll need to contact Apple's Developer Network for instructions on reprogramming your operating system or recompiling. Did you ever suppose that perhaps the file is read-only for a very important reason? Sure seems like it to me.
Either that or find yourself a simpler way to install/configure your Apache/PHP/MySql support.
Personally I think you're making things WAY TOO complicated. Yours is the first I've heard of anyone having to do any editing to C header files.
You have several options:
a) continue on the path you're on ... which is entirely illogical in my opinion
b) surf the search engines for the proper way to configure Apple's built-in services and adding/configuring PHP/MySQL support.
c) install a prepackaged Apache/PHP/MySQL stack for the Mac, such as MAMP or XAMPP
d) skip installing on your Mac, and just install to a real webserver ... since that's where you're going to run your site anyway ... Using a live server is far more straightforward for people unfamiliar with configuring their own computer (Mac or PC) to pretend to be a webserver.
I recommend you try option (d). And, if that's not suitable for some reason, try (c).
If you choose (a), then this forum is not for you until you've got your Mac/programming/webserver/etc issues sorted out. After that, come back once you're able to use the webserver and start using Zen Cart.