snapcraft: Set CFLAGS and LDFLAGS to unsure it is using staged packages and not core.
Still FTBFS due to not finding openjpeg.h despite it being staged. Set CFLAGS and LDFLAGS.
Still FTBFS due to not finding openjpeg.h despite it being staged. Set CFLAGS and LDFLAGS.