fix configure
fix compilation warnings