fix cross-compilation issue with autoconf cache