fix build issues for experimental branch

experimental branch build was broken from some merge artifacts, this
commit fixes those issues to enable the experimental branch to build.

Change-Id: Ic52b2d2f1d1b80abb7ecaa4c0927bcf887ac0c2a
diff --git a/configure b/configure
index 86f2791..92fa04c 100755
--- a/configure
+++ b/configure
@@ -301,7 +301,6 @@
     shared
     small
     postproc_visualizer
-
     experimental
 "
 
@@ -319,9 +318,11 @@
                 log_echo "Ignoring $opt -- not in experimental mode."
             fi
         else
-            process_common_cmdline "$opt"
+            process_common_cmdline $opt
         fi
         ;;
+        *) process_common_cmdline $opt
+        ;;
         esac
     done
 }
diff --git a/vp8/encoder/rdopt.c b/vp8/encoder/rdopt.c
index 9173272..f0ddf44 100644
--- a/vp8/encoder/rdopt.c
+++ b/vp8/encoder/rdopt.c
@@ -630,7 +630,12 @@
 
     // Distortion
     d = ENCODEMB_INVOKE(rtcd, mberr)(mb, 1) << 2;
+
+#if CONFIG_EXTEND_QRANGE
+    d += ENCODEMB_INVOKE(rtcd, berr)(mb_y2->coeff, x_y2->dqcoeff)<<2;
+#else
     d += ENCODEMB_INVOKE(rtcd, berr)(mb_y2->coeff, x_y2->dqcoeff);
+#endif
 
     *Distortion = (d >> 4);
 
@@ -1049,10 +1054,7 @@
     return distortion;
 }
 
-#if CONFIG_EXTEND_QRANGE
-    d += ENCODEMB_INVOKE(rtcd, berr)(mb_y2->coeff, x_y2->dqcoeff)<<2;
-#else
-#endif
+
 
 static const unsigned int segmentation_to_sseshift[4] = {3, 3, 2, 0};