Link against -lpng, since we can now write screenshots in PNG format.