autoconf fixes for ubuntu and probably other linux distros