packages: load ac_cache only for autoconf packages
packages: add small patch to fix 265 build