Include stdio.h. It was sneaking in through png.h
If you ./configure --without-libpng then stdio.h was not getting
pulled in, but is required in the jpeg code. Ensure it comes in.
Merge pull request #12 from jimstudt/jpegincludefix

Include stdio.h. It was sneaking in through png.h