diff --git a/build/autoconf/mozconfig-find b/build/autoconf/mozconfig-find
index 31f5b71b58e2c9d79277243d80f0d221b26947ba..2018f0a4e1323afc24c466e42f6b6772e1e9a88f 100755
--- a/build/autoconf/mozconfig-find
+++ b/build/autoconf/mozconfig-find
@@ -46,6 +46,27 @@
 #
 topsrcdir=$1
 
+abspath() {
+  if uname -s | grep -q MINGW; then
+    # We have no way to figure out whether we're in gmake or pymake right
+    # now. gmake gives us Unix-style paths while pymake gives us Windows-style
+    # paths, so attempt to handle both.
+    regexes='^\([A-Za-z]:\|\\\\\|\/\) ^\/'
+  else
+    regexes='^\/'
+  fi
+
+  for regex in $regexes; do
+    if echo $1 | grep -q $regex; then
+      echo $1
+      exit 0
+    fi
+  done
+
+  # If we're at this point, we have a relative path
+  echo `pwd`/$1
+}
+
 for _config in "$MOZCONFIG" \
                "$MOZ_MYCONFIG"
 do
@@ -66,7 +87,7 @@ for _config in "$MOZCONFIG" \
                "$HOME/.mozmyconfig.sh"
 do
   if test -f "$_config"; then
-    echo "$_config";
+    echo `abspath $_config`
     exit 0
   fi
 done
diff --git a/build/win32/Makefile.in b/build/win32/Makefile.in
index 07a837b17f49e7c3e24c91d28f9e88a6971540b8..581162b256c0fe9c5c25c19b45e2fd93a37bbb79 100644
--- a/build/win32/Makefile.in
+++ b/build/win32/Makefile.in
@@ -42,6 +42,8 @@ VPATH = @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
+NO_PROFILE_GUIDED_OPTIMIZE = 1
+
 ifdef ENABLE_TESTS
 
 ifdef _MSC_VER