added cppflags to libpng build