diff --git a/engine/nbproject/build-bullet-natives.xml b/engine/nbproject/build-bullet-natives.xml
index 348489490..8409f72e1 100644
--- a/engine/nbproject/build-bullet-natives.xml
+++ b/engine/nbproject/build-bullet-natives.xml
@@ -165,8 +165,6 @@
-
-
@@ -239,17 +237,22 @@
-
+
+
+
-
+
+
-
+
+
+
@@ -369,10 +372,10 @@
-
-
-
-
+
+
+
+
@@ -439,7 +442,45 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/engine/nbproject/bullet-native.properties b/engine/nbproject/bullet-native.properties
index 05bdf3faa..e9de2666e 100644
--- a/engine/nbproject/bullet-native.properties
+++ b/engine/nbproject/bullet-native.properties
@@ -18,6 +18,10 @@ bullet.osx.syslibroot=/Developer/SDKs/MacOSX10.6.sdk
bullet.windows.compiler=g++
bullet.linux.compiler=g++
bullet.solaris.compiler=g++
+#cross compilation options
+bullet.linux.crosscompiler=gcc-cross
+cross.compile.target=i686-w64-mingw32
+cross.compile.target64=i686-w64-mingw32
# native header include directories
bullet.java.include=${java.home}/../include
# OSX has no JRE, only JDK
diff --git a/engine/nbproject/mingw32.toolchain b/engine/nbproject/mingw32.toolchain
deleted file mode 100644
index 75fefba40..000000000
--- a/engine/nbproject/mingw32.toolchain
+++ /dev/null
@@ -1,17 +0,0 @@
-# the name of the target operating system
-SET(CMAKE_SYSTEM_NAME Windows)
-
-# which compilers to use for C and C++
-SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
-SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
-SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
-
-# here is the target environment located
-SET(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32)
-
-# adjust the default behaviour of the FIND_XXX() commands:
-# search headers and libraries in the target environment, search
-# programs in the host environment
-set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
-set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
-set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
diff --git a/engine/nbproject/mingw64.toolchain b/engine/nbproject/mingw64.toolchain
deleted file mode 100644
index c5c47d236..000000000
--- a/engine/nbproject/mingw64.toolchain
+++ /dev/null
@@ -1,17 +0,0 @@
-# the name of the target operating system
-SET(CMAKE_SYSTEM_NAME Windows)
-
-# which compilers to use for C and C++
-SET(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
-SET(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
-SET(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)
-
-# here is the target environment located
-SET(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32)
-
-# adjust the default behaviour of the FIND_XXX() commands:
-# search headers and libraries in the target environment, search
-# programs in the host environment
-set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
-set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
-set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)