Stronger checking for libpng
inline needed macro'ing