fixed order, added int cast for ngx_flat_t for gdImageInterlace