Merge pull request #36 from Biswa96/check-debug-mode-assert

Fix building in MinGW
diff --git a/src/xalanc/XPath/MutableNodeRefList.cpp b/src/xalanc/XPath/MutableNodeRefList.cpp
index 9d8c1ba..f7e3527 100644
--- a/src/xalanc/XPath/MutableNodeRefList.cpp
+++ b/src/xalanc/XPath/MutableNodeRefList.cpp
@@ -704,7 +704,9 @@
         m_order = eUnknownOrder;
     }
 
+#if defined(XALAN_DEBUG)
     assert(checkForDuplicates(getMemoryManager()) == false);
+#endif
 }
 
 
diff --git a/src/xalanc/XSLT/FunctionDocument.cpp b/src/xalanc/XSLT/FunctionDocument.cpp
index bd02cff..701f982 100644
--- a/src/xalanc/XSLT/FunctionDocument.cpp
+++ b/src/xalanc/XSLT/FunctionDocument.cpp
@@ -573,7 +573,9 @@
         }
     }
 
+#if defined(XALAN_DEBUG)
     assert(mnl->checkForDuplicates(executionContext.getMemoryManager()) == false);
+#endif
 
     mnl->setDocumentOrder();