First you have to find where the png.h file is located
sudo find / -name png.h
Here in my environment it is located at /usr/local/include
Then look for libpng.a
sudo find / -name libpng.a
Here in my environment it is located at /usr/local/lib
Now add those directories to the clang command line:
clang -I/usr/local/include -L/usr/local/lib -w -lz -lpng16 libpng_test.c