Improve configure to allow selecting features to compile.