I used this guide to install the \"scientific stack\" for Python (OSX 10.9.2, brewed Python 2.7.6, IPython 2.0, matplotlib 1.3.1, libpng 1.6.10). Everything was looking good
Look for old header files beginning with "png" (png.h, pngconf.h, perhaps others) and remove them.