--- a/aaphoto.c 2011-01-26 16:39:58.000000000 +0100 +++ b/aaphoto.c 2013-06-26 12:09:58.208144331 +0200 @@ -242,6 +242,7 @@ #ifndef __BMP_ONLY__ #include <jasper/jasper.h> +#include <zlib.h> #include <png.h> #include <jpeglib.h> #endif