Fix warnings in configure script