fixed an issue with loading png library on 10.8