diff --git a/scripts/build.sh b/scripts/build.sh
index f48ca066..aa9ff968 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -15,3 +15,4 @@ echo $ENABLE_CONTRIB > contrib.enabled
 echo $ENABLE_HEADLESS > headless.enabled
 set -x
 build_wheel $REPO_DIR $PLAT
+rm wheelhouse/numpy*
diff --git a/setup.py b/setup.py
index 612a080c..22b6561d 100644
--- a/setup.py
+++ b/setup.py
@@ -151,6 +151,12 @@ def main():
             "-DBUILD_PERF_TESTS=OFF",
             "-DBUILD_DOCS=OFF",
         ]
+        + (
+            # If it is not defined 'linker flags: /machine:X86' on Windows x64
+            ["-DCMAKE_GENERATOR_PLATFORM=x64"]
+            if x64 and sys.platform == "win32"
+            else []
+          )
         + (
             ["-DOPENCV_EXTRA_MODULES_PATH=" + os.path.abspath("opencv_contrib/modules")]
             if build_contrib
diff --git a/travis_config.sh b/travis_config.sh
index a83fe141..a387966c 100644
--- a/travis_config.sh
+++ b/travis_config.sh
@@ -92,6 +92,15 @@ function pre_build {
   echo "Starting pre-build"
   set -e -o pipefail
 
+  if [ -n "$IS_OSX" ]; then
+    brew install lapack
+  else
+    # epel-release need for aarch64 to get openblas packages
+    yum install -y lapack-devel epel-release && yum install -y openblas-devel
+    cp /usr/include/lapacke/lapacke*.h /usr/include/
+    curl https://raw.githubusercontent.com/xianyi/OpenBLAS/v0.3.3/cblas.h -o /usr/include/cblas.h
+  fi
+
   if [ -n "$IS_OSX" ]; then
     echo "Running for OSX"