Fix configure problems and output warnings