--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -38,6 +38,8 @@
 
 message(STATUS "FreeDV version: ${FREEDV_VERSION}")
 
+set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${CMAKE_SOURCE_DIR}/Build/usr/  ${CMAKE_SOURCE_DIR}/Build/  ${CMAKE_SOURCE_DIR}/libctb/ )
+
 # Work around for not using a svn working copy.
 set(SVN_REVISION "Unversioned directory" CACHE STRING
     "Allow build environment to set revision.")
@@ -72,7 +74,8 @@
     set(USE_STATIC_WXWIDGETS TRUE CACHE BOOL
     "Perform bootstrap build of wxWidgets, see README.cmake for more details.")
 else(BOOTSTRAP_WXWIDGETS)
-    set(USE_STATIC_WXWIDGETS FALSE CACHE BOOL
+    # Debian package handles bootstrap build of static wx-2.9
+    set(USE_STATIC_WXWIDGETS TRUE CACHE BOOL
     "Perform bootstrap build of wxWidgets, see README.cmake for more details.")
 endif(BOOTSTRAP_WXWIDGETS)
 
@@ -338,8 +341,8 @@
 set(WXCONFIG "" CACHE FILEPATH "Location of wx-config binary.")
 set(WXRC "" CACHE FILEPATH "Location of wxrc binary.")
 if(USE_STATIC_WXWIDGETS)
-    set(WXCONFIG "${CMAKE_BINARY_DIR}/external/dist/bin/wx-config")
-    set(WXRC "${CMAKE_BINARY_DIR}/external/dist/bin/wxrc")
+    #set(WXCONFIG "${CMAKE_BINARY_DIR}/external/dist/bin/wx-config")
+    #set(WXRC "${CMAKE_BINARY_DIR}/external/dist/bin/wxrc")
     #set(wxWidgets_CONFIG_OPTIONS --linkdeps)
     list(APPEND FREEDV_STATIC_DEPS wxWidgets)
 endif(USE_STATIC_WXWIDGETS)
@@ -369,6 +372,10 @@
 endif()
 if(wxWidgets_FOUND)
     include("${wxWidgets_USE_FILE}")
+    # That has some lies, it thinks installed system paths not local. Debian package build needs:
+    include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/Build/usr/include/wx-2.9/)
+    include_directories(${CMAKE_SOURCE_DIR}/Build/usr/lib/wx/include/gtk2-unicode-static-2.9/)
+    set(wxWidgets_LIBRARIES "-L../usr/lib;-pthread;;;-lwx_gtk2u-2.9;-pthread;-lgtk-x11-2.0;-lgdk-x11-2.0;-latk-1.0;-lgio-2.0;-lpangoft2-1.0;-lpangocairo-1.0;-lgdk_pixbuf-2.0;-lcairo;-lpango-1.0;-lfreetype;-lfontconfig;-lgobject-2.0;-lgthread-2.0;-lrt;-lglib-2.0;-lX11;-lSM;-lpng;-lz;-ljpeg;-ltiff;-lwxregexu-2.9;-lz;-ldl;-lm")
     list(APPEND FREEDV_LINK_LIBS ${wxWidgets_LIBRARIES})
 endif(wxWidgets_FOUND)
 
@@ -408,21 +415,21 @@
     message(STATUS "  libctb library: ${LIBCTB_LIBRARY}")
     message(STATUS "  libctb headers: ${LIBCTB_INCLUDE_DIR}")
     if(LIBCTB_LIBRARY AND LIBCTB_INCLUDE_DIR)
-        set(CMAKE_REQUIRED_LIBRARIES ${LIBCTB_LIBRARY})
-        if(NOT CMAKE_CROSSCOMPILING)
+#        set(CMAKE_REQUIRED_LIBRARIES ${LIBCTB_LIBRARY})
+#        if(NOT CMAKE_CROSSCOMPILING)
             # Check to make sure linking with libctb works.
-            include(CheckCXXSourceCompiles)
-            check_cxx_source_compiles("
+#            include(CheckCXXSourceCompiles)
+#            check_cxx_source_compiles("
                 #include <ctb-0.16/ctb.h>
-                int main() {
-                ctb::SerialPort*        m_serialPort;
-                m_serialPort = new ctb::SerialPort();
-                };"
-                LIBCTB_LINKS)
-            if(NOT LIBCTB_LINKS)
-                message(FATAL_ERROR "Linking libctb failed.")
-            endif(NOT LIBCTB_LINKS)
-        endif(NOT CMAKE_CROSSCOMPILING)
+#                int main() {
+#                ctb::SerialPort*        m_serialPort;
+#                m_serialPort = new ctb::SerialPort();
+#                };"
+#                LIBCTB_LINKS)
+#            if(NOT LIBCTB_LINKS)
+#                message(FATAL_ERROR "Linking libctb failed.")
+#            endif(NOT LIBCTB_LINKS)
+#        endif(NOT CMAKE_CROSSCOMPILING)
     else(LIBCTB_LIBRARY AND LIBCTB_INCLUDE_DIR)
         message(FATAL_ERROR "libctb not found.
 Linux:
