fix configure and build