diff --git a/Code/SpatialReasoning/otbRCC8VertexBase.h b/Code/SpatialReasoning/otbRCC8VertexBase.h
index 988ccc7b7e0f6e8377a192e2abbe5ed6189ae7ab..6acba0682567612239fd77b7ae35eda7bf653002 100644
--- a/Code/SpatialReasoning/otbRCC8VertexBase.h
+++ b/Code/SpatialReasoning/otbRCC8VertexBase.h
@@ -20,6 +20,7 @@
 
 #include "itkDataObject.h"
 #include "itkObjectFactory.h"
+#include <cstdlib>
 
 namespace otb
 {
diff --git a/Testing/Code/BasicFilters/otbEuclideanDistanceWithMissingValue.cxx b/Testing/Code/BasicFilters/otbEuclideanDistanceWithMissingValue.cxx
index b88fdfa4a3e5c5e7826ad4d7e38d2f93d938e7b0..bbd65581f4292634a65c64339700b3ba139cef6b 100644
--- a/Testing/Code/BasicFilters/otbEuclideanDistanceWithMissingValue.cxx
+++ b/Testing/Code/BasicFilters/otbEuclideanDistanceWithMissingValue.cxx
@@ -20,7 +20,7 @@ PURPOSE.  See the above copyright notices for more information.
 
 
 #include <iostream>
-
+#include <cstdlib>
 #include "itkVariableLengthVector.h"
 #include "otbEuclideanDistanceWithMissingValue.h"
 
diff --git a/Testing/Code/BasicFilters/otbEuclideanDistanceWithMissingValueNew.cxx b/Testing/Code/BasicFilters/otbEuclideanDistanceWithMissingValueNew.cxx
index 063cdccfc3f15b10d076a84d273cdbbedd22e4bc..dccbc99c4651724659c72018e41341b118e61bfb 100644
--- a/Testing/Code/BasicFilters/otbEuclideanDistanceWithMissingValueNew.cxx
+++ b/Testing/Code/BasicFilters/otbEuclideanDistanceWithMissingValueNew.cxx
@@ -20,7 +20,7 @@ PURPOSE.  See the above copyright notices for more information.
 
 
 #include <iostream>
-
+#include <cstdlib>
 #include "itkVariableLengthVector.h"
 #include "otbEuclideanDistanceWithMissingValue.h"
 
diff --git a/Testing/Code/BasicFilters/otbInverseLogPolarTransform.cxx b/Testing/Code/BasicFilters/otbInverseLogPolarTransform.cxx
index 59249533a86dde48ff2dd84ba3395dcc50551d86..2d4b65549982009777a41b7aa0f3dcef449ca3ea 100644
--- a/Testing/Code/BasicFilters/otbInverseLogPolarTransform.cxx
+++ b/Testing/Code/BasicFilters/otbInverseLogPolarTransform.cxx
@@ -18,6 +18,7 @@
 #include "otbInverseLogPolarTransform.h"
 #include "otbMacro.h"
 #include <fstream>
+#include <cstdlib>
 #include "otbMath.h"
 
 int otbInverseLogPolarTransform(int argc, char* argv[])
diff --git a/Testing/Code/BasicFilters/otbInverseLogPolarTransformNew.cxx b/Testing/Code/BasicFilters/otbInverseLogPolarTransformNew.cxx
index 32448504dd690bd2253944ab47570d01fbea8341..d333d435e0e190c73353bb4d2e3bab6e0241316e 100644
--- a/Testing/Code/BasicFilters/otbInverseLogPolarTransformNew.cxx
+++ b/Testing/Code/BasicFilters/otbInverseLogPolarTransformNew.cxx
@@ -16,6 +16,7 @@
 
 =========================================================================*/
 #include "otbInverseLogPolarTransform.h"
+#include <cstdlib>
 
 int otbInverseLogPolarTransformNew(int argc, char* argv[])
 {
diff --git a/Testing/Code/BasicFilters/otbLogPolarTransform.cxx b/Testing/Code/BasicFilters/otbLogPolarTransform.cxx
index fb45310be1a97bc634b441666adca4b3c413a9d1..101f8c5f0b6705ffcbc41978e42e50156e363fc3 100644
--- a/Testing/Code/BasicFilters/otbLogPolarTransform.cxx
+++ b/Testing/Code/BasicFilters/otbLogPolarTransform.cxx
@@ -20,6 +20,7 @@
 #include "otbMacro.h"
 #include "otbMath.h"
 #include <fstream>
+#include <cstdlib>
 
 int otbLogPolarTransform(int argc, char* argv[])
 {
diff --git a/Testing/Code/BasicFilters/otbLogPolarTransformNew.cxx b/Testing/Code/BasicFilters/otbLogPolarTransformNew.cxx
index df03109be63d5af866d6b9cfc8bcfe06b059574b..52fd9f15268f00838d39874f98b2b6d1fdb5cf9a 100644
--- a/Testing/Code/BasicFilters/otbLogPolarTransformNew.cxx
+++ b/Testing/Code/BasicFilters/otbLogPolarTransformNew.cxx
@@ -16,6 +16,7 @@
 
 =========================================================================*/
 #include "otbLogPolarTransform.h"
+#include <cstdlib>
 
 int otbLogPolarTransformNew(int argc, char* argv[])
 {
diff --git a/Testing/Code/FeatureExtraction/otbBreakAngularPathListFilter.cxx b/Testing/Code/FeatureExtraction/otbBreakAngularPathListFilter.cxx
index 0452a807d0c78f0f3b58f2faeae475c6612d7b44..478d6b78942b2afbcfaa6659172230fecaf745bd 100644
--- a/Testing/Code/FeatureExtraction/otbBreakAngularPathListFilter.cxx
+++ b/Testing/Code/FeatureExtraction/otbBreakAngularPathListFilter.cxx
@@ -22,6 +22,7 @@
 #include <fstream>
 #include <vector>
 #include "otbMath.h"
+#include <cstdlib>
 
 int otbBreakAngularPathListFilter(int argc, char * argv[])
 {
diff --git a/Testing/Code/FeatureExtraction/otbBreakAngularPathListFilterNew.cxx b/Testing/Code/FeatureExtraction/otbBreakAngularPathListFilterNew.cxx
index 29abb26174a0d2ab0dccb1d433bff93d7d3178f7..b295c4e9a93707de99d44281d46c36214f45d389 100644
--- a/Testing/Code/FeatureExtraction/otbBreakAngularPathListFilterNew.cxx
+++ b/Testing/Code/FeatureExtraction/otbBreakAngularPathListFilterNew.cxx
@@ -18,6 +18,7 @@
 #include "itkExceptionObject.h"
 #include "otbBreakAngularPathListFilter.h"
 #include "itkPolyLineParametricPath.h"
+#include <cstdlib>
 
 int otbBreakAngularPathListFilterNew(int argc, char * argv[])
 {
diff --git a/Testing/Code/FeatureExtraction/otbCompacityPathCircle.cxx b/Testing/Code/FeatureExtraction/otbCompacityPathCircle.cxx
index 2b680aa326ca444ad1a923c81103991bb7061434..9644c4fdb3e2362c631cd55f117c2f6858a87381 100644
--- a/Testing/Code/FeatureExtraction/otbCompacityPathCircle.cxx
+++ b/Testing/Code/FeatureExtraction/otbCompacityPathCircle.cxx
@@ -19,7 +19,7 @@
 #if defined(_MSC_VER)
 #pragma warning ( disable : 4786 )
 #endif
-
+#include <cstdlib>
 #include "otbCompacityPathFunction.h"
 #include "itkPolyLineParametricPath.h"
 #include "itkExceptionObject.h"
diff --git a/Testing/Code/FeatureExtraction/otbCompacityPathNew.cxx b/Testing/Code/FeatureExtraction/otbCompacityPathNew.cxx
index 8fbff180c8b8833ab442e3c647dbf80c32263fdc..2b13e526b6e2f54df96fc78de6032bbea8114537 100644
--- a/Testing/Code/FeatureExtraction/otbCompacityPathNew.cxx
+++ b/Testing/Code/FeatureExtraction/otbCompacityPathNew.cxx
@@ -20,6 +20,8 @@
 #pragma warning ( disable : 4786 )
 #endif
 
+#include <cstdlib>
+
 #include "otbCompacityPathFunction.h"
 #include "itkPolyLineParametricPath.h"
 #include "itkExceptionObject.h"
diff --git a/Testing/Code/FeatureExtraction/otbCompacityPathRectangle.cxx b/Testing/Code/FeatureExtraction/otbCompacityPathRectangle.cxx
index 0ad6854e91a96a1078a0d5b685cc96f07aaece80..7c962db01b1abf5ce66d22ac51d3cc4a725d5de0 100644
--- a/Testing/Code/FeatureExtraction/otbCompacityPathRectangle.cxx
+++ b/Testing/Code/FeatureExtraction/otbCompacityPathRectangle.cxx
@@ -19,7 +19,7 @@
 #if defined(_MSC_VER)
 #pragma warning ( disable : 4786 )
 #endif
-
+#include <cstdlib>
 #include "otbCompacityPathFunction.h"
 #include "itkPolyLineParametricPath.h"
 #include "itkExceptionObject.h"
diff --git a/Testing/Code/FeatureExtraction/otbCompacityPathSquare.cxx b/Testing/Code/FeatureExtraction/otbCompacityPathSquare.cxx
index 6c147e4ad725965f604e9a37a97cea121e68115d..0eed312745a6b6e2168271108648bc7ad01349d4 100644
--- a/Testing/Code/FeatureExtraction/otbCompacityPathSquare.cxx
+++ b/Testing/Code/FeatureExtraction/otbCompacityPathSquare.cxx
@@ -19,7 +19,7 @@
 #if defined(_MSC_VER)
 #pragma warning ( disable : 4786 )
 #endif
-
+#include <cstdlib>
 #include "otbCompacityPathFunction.h"
 #include "itkPolyLineParametricPath.h"
 #include "itkExceptionObject.h"
diff --git a/Testing/Code/FeatureExtraction/otbLinkPathListFilter.cxx b/Testing/Code/FeatureExtraction/otbLinkPathListFilter.cxx
index 6c4dc51c45f14d31112451298fc04b81419b5391..c36737dd2bf6638fd91e6b05b9b8f207f3f952f7 100644
--- a/Testing/Code/FeatureExtraction/otbLinkPathListFilter.cxx
+++ b/Testing/Code/FeatureExtraction/otbLinkPathListFilter.cxx
@@ -19,8 +19,10 @@
 
 #include "otbLinkPathListFilter.h"
 #include "itkPolyLineParametricPath.h"
-#include <fstream>
 #include "otbMath.h"
+#include <fstream>
+#include <cstdlib>
+
 
 int otbLinkPathListFilter(int argc, char * argv[])
 {
diff --git a/Testing/Code/FeatureExtraction/otbLinkPathListFilterNew.cxx b/Testing/Code/FeatureExtraction/otbLinkPathListFilterNew.cxx
index 912344ec48353f0a00ec0cc9e97fd3f0821f7680..226b8f5a8bcdbcfd7bb3ca34958f6ade48ed49fa 100644
--- a/Testing/Code/FeatureExtraction/otbLinkPathListFilterNew.cxx
+++ b/Testing/Code/FeatureExtraction/otbLinkPathListFilterNew.cxx
@@ -18,6 +18,7 @@
 #include "itkExceptionObject.h"
 #include "otbLinkPathListFilter.h"
 #include "itkPolyLineParametricPath.h"
+#include <cstdlib>
 
 int otbLinkPathListFilterNew(int argc, char * argv[])
 {
diff --git a/Testing/Code/FeatureExtraction/otbOrientationPath.cxx b/Testing/Code/FeatureExtraction/otbOrientationPath.cxx
index 830a622e56710a25a957e8fb5dc5ed42851e6d4d..cbe52dad8da07294540e11e6fa8be368cf11d583 100644
--- a/Testing/Code/FeatureExtraction/otbOrientationPath.cxx
+++ b/Testing/Code/FeatureExtraction/otbOrientationPath.cxx
@@ -20,6 +20,7 @@
 #pragma warning ( disable : 4786 )
 #endif
 
+#include <cstdlib>
 #include "otbMath.h"
 #include "otbOrientationPathFunction.h"
 #include "itkPolyLineParametricPath.h"
diff --git a/Testing/Code/FeatureExtraction/otbOrientationPathNew.cxx b/Testing/Code/FeatureExtraction/otbOrientationPathNew.cxx
index fa23fc86348827801f907debe92326fa0a4d5920..6160e5b352491f5f28082fdcf7b9462755463d13 100644
--- a/Testing/Code/FeatureExtraction/otbOrientationPathNew.cxx
+++ b/Testing/Code/FeatureExtraction/otbOrientationPathNew.cxx
@@ -20,6 +20,7 @@
 #pragma warning ( disable : 4786 )
 #endif
 
+#include <cstdlib>
 #include "otbOrientationPathFunction.h"
 #include "itkPolyLineParametricPath.h"
 #include "itkExceptionObject.h"
diff --git a/Testing/Code/FeatureExtraction/otbRemoveTortuousPathListFilter.cxx b/Testing/Code/FeatureExtraction/otbRemoveTortuousPathListFilter.cxx
index b24706a760a461b0c8b5c05a1d4fe6ebdc2407c9..361322e81d72b7755304b9e6b65134f65eb31cd3 100644
--- a/Testing/Code/FeatureExtraction/otbRemoveTortuousPathListFilter.cxx
+++ b/Testing/Code/FeatureExtraction/otbRemoveTortuousPathListFilter.cxx
@@ -20,6 +20,7 @@
 #include "otbRemoveTortuousPathListFilter.h"
 #include "itkPolyLineParametricPath.h"
 #include <fstream>
+#include <cstdlib>
 
 int otbRemoveTortuousPathListFilter(int argc, char * argv[])
 {
diff --git a/Testing/Code/FeatureExtraction/otbRemoveTortuousPathListFilterNew.cxx b/Testing/Code/FeatureExtraction/otbRemoveTortuousPathListFilterNew.cxx
index 7ec4d561236ed4263b5996d4568e153e4d27ab6b..10c9603b1ca9262ff929ed2b3190e2ab2279bd73 100644
--- a/Testing/Code/FeatureExtraction/otbRemoveTortuousPathListFilterNew.cxx
+++ b/Testing/Code/FeatureExtraction/otbRemoveTortuousPathListFilterNew.cxx
@@ -19,6 +19,7 @@
 
 #include "otbRemoveTortuousPathListFilter.h"
 #include "itkPolyLineParametricPath.h"
+#include <cstdlib>
 
 int otbRemoveTortuousPathListFilterNew(int argc, char * argv[])
 {
diff --git a/Testing/Code/FeatureExtraction/otbSimplifyPathListFilter.cxx b/Testing/Code/FeatureExtraction/otbSimplifyPathListFilter.cxx
index 406c4f86a6803389d52149a79da96a4b3efbbe72..9bb0afde2d12dfb8060ab2c0b4da04ebbb95eec7 100644
--- a/Testing/Code/FeatureExtraction/otbSimplifyPathListFilter.cxx
+++ b/Testing/Code/FeatureExtraction/otbSimplifyPathListFilter.cxx
@@ -20,6 +20,7 @@
 #include "otbSimplifyPathListFilter.h"
 #include "itkPolyLineParametricPath.h"
 #include <fstream>
+#include <cstdlib>
 
 int otbSimplifyPathListFilter(int argc, char * argv[])
 {
diff --git a/Testing/Code/FeatureExtraction/otbSimplifyPathListFilterNew.cxx b/Testing/Code/FeatureExtraction/otbSimplifyPathListFilterNew.cxx
index 9a141f0cc4e3605125dc58ebdc759b98ddf6d68f..945d66eb5e832f1616133212a709ca7658f4dc48 100644
--- a/Testing/Code/FeatureExtraction/otbSimplifyPathListFilterNew.cxx
+++ b/Testing/Code/FeatureExtraction/otbSimplifyPathListFilterNew.cxx
@@ -19,6 +19,7 @@
 
 #include "otbSimplifyPathListFilter.h"
 #include "itkPolyLineParametricPath.h"
+#include <cstdlib>
 
 int otbSimplifyPathListFilterNew(int argc, char * argv[])
 {
diff --git a/Testing/Code/Markov/otbMRFOptimizerICM.cxx b/Testing/Code/Markov/otbMRFOptimizerICM.cxx
index 80dff5757428fda05a971d70b2794b5434d0188f..f5ee33ddf6afeff119ab820ddded3022f0c6621e 100644
--- a/Testing/Code/Markov/otbMRFOptimizerICM.cxx
+++ b/Testing/Code/Markov/otbMRFOptimizerICM.cxx
@@ -20,6 +20,7 @@
 #endif
 
 #include "otbMRFOptimizerICM.h"
+#include <cstdlib>
 
 int otbMRFOptimizerICM(int argc, char * argv[])
 { 
diff --git a/Testing/Code/Markov/otbMRFOptimizerICMNew.cxx b/Testing/Code/Markov/otbMRFOptimizerICMNew.cxx
index 267b3fd65b4504e99c901b831b9fa1573c3d1497..4e8265c10ed3f754414e04c2202720f835f5cbf9 100644
--- a/Testing/Code/Markov/otbMRFOptimizerICMNew.cxx
+++ b/Testing/Code/Markov/otbMRFOptimizerICMNew.cxx
@@ -20,6 +20,7 @@
 #endif
 
 #include "otbMRFOptimizerICM.h"
+#include <cstdlib>
 
 int otbMRFOptimizerICMNew(int argc, char * argv[])
 {
diff --git a/Testing/Code/Markov/otbMRFOptimizerMetropolis.cxx b/Testing/Code/Markov/otbMRFOptimizerMetropolis.cxx
index 89aa24a27c37960cdc09889896d0db968d4fe718..efdea956662899e03aaa543715155faa41b9b4f0 100644
--- a/Testing/Code/Markov/otbMRFOptimizerMetropolis.cxx
+++ b/Testing/Code/Markov/otbMRFOptimizerMetropolis.cxx
@@ -21,6 +21,7 @@
 
 #include "otbMRFOptimizerMetropolis.h"
 #include <fstream>
+#include <cstdlib>
 
 int otbMRFOptimizerMetropolis(int argc, char * argv[])
 {
diff --git a/Testing/Code/Markov/otbMRFOptimizerMetropolisNew.cxx b/Testing/Code/Markov/otbMRFOptimizerMetropolisNew.cxx
index 2ad1ecaf8fc899ca4a340bc7a40b0e4dd9813c53..b8900f2a0987cda3be01cb0564b7f87ea42c408d 100644
--- a/Testing/Code/Markov/otbMRFOptimizerMetropolisNew.cxx
+++ b/Testing/Code/Markov/otbMRFOptimizerMetropolisNew.cxx
@@ -20,6 +20,7 @@
 #endif
 
 #include "otbMRFOptimizerMetropolis.h"
+#include <cstdlib>
 
 int otbMRFOptimizerMetropolisNew(int argc, char * argv[])
 {
diff --git a/Testing/Code/Radiometry/otbAtmosphericCorrectionParametersNew.cxx b/Testing/Code/Radiometry/otbAtmosphericCorrectionParametersNew.cxx
index f30d968425b786f4b4f42582a5121b0688b3bba1..b268043abf13f1ea4d16ce7d17e5e33902917722 100644
--- a/Testing/Code/Radiometry/otbAtmosphericCorrectionParametersNew.cxx
+++ b/Testing/Code/Radiometry/otbAtmosphericCorrectionParametersNew.cxx
@@ -20,9 +20,10 @@
 #endif
 
 #include "itkExceptionObject.h"
-
 #include "otbAtmosphericCorrectionParameters.h"
 
+#include <cstdlib>
+
 int otbAtmosphericCorrectionParametersNew(int argc, char * argv[])
 {
   try
diff --git a/Testing/Code/Radiometry/otbAtmosphericCorrectionParametersTo6SAtmosphericRadiativeTerms.cxx b/Testing/Code/Radiometry/otbAtmosphericCorrectionParametersTo6SAtmosphericRadiativeTerms.cxx
index 745c8ff35f4f824f9009fbc1b1d45a3f27277df1..0ff978e70406dc0c5d65da5ca451f21315ae34cf 100644
--- a/Testing/Code/Radiometry/otbAtmosphericCorrectionParametersTo6SAtmosphericRadiativeTerms.cxx
+++ b/Testing/Code/Radiometry/otbAtmosphericCorrectionParametersTo6SAtmosphericRadiativeTerms.cxx
@@ -23,6 +23,7 @@
 #include <fstream>
 #include <iostream>
 #include <iomanip>
+#include <cstdlib>
 
 int otbAtmosphericCorrectionParametersTo6SAtmosphericRadiativeTerms(int argc, char * argv[])
 {
diff --git a/Testing/Code/Radiometry/otbAtmosphericCorrectionParametersTo6SAtmosphericRadiativeTermsNew.cxx b/Testing/Code/Radiometry/otbAtmosphericCorrectionParametersTo6SAtmosphericRadiativeTermsNew.cxx
index f8769752b776eb126108251d52ee1525fd47b7b9..ad2338d2dce353792e80a3fae1d107f62ff6aa16 100644
--- a/Testing/Code/Radiometry/otbAtmosphericCorrectionParametersTo6SAtmosphericRadiativeTermsNew.cxx
+++ b/Testing/Code/Radiometry/otbAtmosphericCorrectionParametersTo6SAtmosphericRadiativeTermsNew.cxx
@@ -17,6 +17,7 @@
 =========================================================================*/
 
 #include "otbAtmosphericCorrectionParametersTo6SAtmosphericRadiativeTerms.h"
+#include <cstdlib>
 
 int otbAtmosphericCorrectionParametersTo6SAtmosphericRadiativeTermsNew(int argc, char * argv[])
 {
diff --git a/Testing/Code/Radiometry/otbAtmosphericRadiativeTermsNew.cxx b/Testing/Code/Radiometry/otbAtmosphericRadiativeTermsNew.cxx
index 8041238b9ce15b9d3d91a78f16f88545a52a5299..aad7a1ba780ee01e4d1f1a420109fe81df643e0e 100644
--- a/Testing/Code/Radiometry/otbAtmosphericRadiativeTermsNew.cxx
+++ b/Testing/Code/Radiometry/otbAtmosphericRadiativeTermsNew.cxx
@@ -20,8 +20,8 @@
 #endif
 
 #include "itkExceptionObject.h"
-
 #include "otbAtmosphericRadiativeTerms.h"
+#include <cstdlib>
 
 int otbAtmosphericRadiativeTermsNew(int argc, char * argv[])
 {
diff --git a/Testing/Code/Radiometry/otbFilterFunctionValues.cxx b/Testing/Code/Radiometry/otbFilterFunctionValues.cxx
index 3cad8ae2182065edf3757ba6767bc29d5112ced5..cf274bdf2de4dc0cd4fa0db6643694e775076245 100644
--- a/Testing/Code/Radiometry/otbFilterFunctionValues.cxx
+++ b/Testing/Code/Radiometry/otbFilterFunctionValues.cxx
@@ -23,6 +23,7 @@
 #include "otbAtmosphericCorrectionParameters.h"
 #include "otbSIXSTraits.h"
 #include <fstream>
+#include <cstdlib>
 
 int otbFilterFunctionValuesTest(int argc, char * argv[])
 {
diff --git a/Testing/Code/Radiometry/otbSIXSTraitsComputeAtmosphericParameters.cxx b/Testing/Code/Radiometry/otbSIXSTraitsComputeAtmosphericParameters.cxx
index e9e49ddc2b4b9ed6f198f377d0671b73e8fc4c23..5f9c57149af70993505a09c6eadfe3922a79050d 100644
--- a/Testing/Code/Radiometry/otbSIXSTraitsComputeAtmosphericParameters.cxx
+++ b/Testing/Code/Radiometry/otbSIXSTraitsComputeAtmosphericParameters.cxx
@@ -24,6 +24,7 @@
 #include <iostream>
 #include <fstream>
 #include <iomanip>
+#include <cstdlib>
 
 int otbSIXSTraitsComputeAtmosphericParametersTest(int argc, char * argv[])
 {
diff --git a/Testing/Code/SpatialReasoning/otbRCC8Edge.cxx b/Testing/Code/SpatialReasoning/otbRCC8Edge.cxx
index 6014813539abe7559a876317183d4aeb27a2f845..d4f010159a8a96047c56ee5e33ce2540cb9ce8d1 100644
--- a/Testing/Code/SpatialReasoning/otbRCC8Edge.cxx
+++ b/Testing/Code/SpatialReasoning/otbRCC8Edge.cxx
@@ -17,6 +17,7 @@
 =========================================================================*/
 #include "itkExceptionObject.h"
 #include "otbRCC8Edge.h"
+#include <cstdlib>
 
 int otbRCC8Edge(int argc, char* argv[])
 {
diff --git a/Testing/Code/SpatialReasoning/otbRCC8EdgeNew.cxx b/Testing/Code/SpatialReasoning/otbRCC8EdgeNew.cxx
index af0240c724a74e45e50c9a0fb99ef1dd0b2b9c57..b4ca3a6c1bef2d3e80d9e2c75b07c651e9c9675b 100644
--- a/Testing/Code/SpatialReasoning/otbRCC8EdgeNew.cxx
+++ b/Testing/Code/SpatialReasoning/otbRCC8EdgeNew.cxx
@@ -17,6 +17,7 @@
 =========================================================================*/
 #include "itkExceptionObject.h"
 #include "otbRCC8Edge.h"
+#include <cstdlib>
 
 int otbRCC8EdgeNew(int argc, char* argv[])
 {
diff --git a/Testing/Code/Visu/otbImageWidgetTransferFunctions.cxx b/Testing/Code/Visu/otbImageWidgetTransferFunctions.cxx
index 48c3bca25b4cd185e554897d63c848e16ac05f6d..bfeed54ae1b5dac3e44c8c14c273ccc4aa5b2f8b 100644
--- a/Testing/Code/Visu/otbImageWidgetTransferFunctions.cxx
+++ b/Testing/Code/Visu/otbImageWidgetTransferFunctions.cxx
@@ -17,6 +17,7 @@ PURPOSE.  See the above copyright notices for more information.
 =========================================================================*/
 #include "otbImageWidgetTransferFunction.h"
 #include <fstream>
+#include <cstdlib>
 
 int otbImageWidgetTransferFunctions(int argc, char * argv[])
 {
diff --git a/Testing/Code/Visu/otbImageWidgetTransferFunctionsNew.cxx b/Testing/Code/Visu/otbImageWidgetTransferFunctionsNew.cxx
index 824242c99c0e4e199da9230ce8f1509fc49eeb05..018342f2b1e28f3d3b2a2a1ec16ec87331980d07 100644
--- a/Testing/Code/Visu/otbImageWidgetTransferFunctionsNew.cxx
+++ b/Testing/Code/Visu/otbImageWidgetTransferFunctionsNew.cxx
@@ -16,7 +16,7 @@ PURPOSE.  See the above copyright notices for more information.
 
 =========================================================================*/
 #include "otbImageWidgetTransferFunction.h"
-
+#include <cstdlib>
 
 int otbImageWidgetTransferFunctionsNew(int argc, char * argv[])
 {