libpng linking correctly on linux