scam: bugfixes for new autoconf