fix compilor warnings
don't run configure every time