fix configure cleanup