Fix implicit function declaration warnings in configure