* fix include for case-sensitive filesystem
* on GNU, clock_gettime requires linking -lrt
diff --git a/unsupported/test/CMakeLists.txt b/unsupported/test/CMakeLists.txt
index 3f72117..c8ccae4 100644
--- a/unsupported/test/CMakeLists.txt
+++ b/unsupported/test/CMakeLists.txt
@@ -17,7 +17,12 @@
 ei_add_test(matrixExponential)
 ei_add_test(alignedvector3)
 ei_add_test(FFT)
-ei_add_test(nesting_profiling)
+
+if(CMAKE_COMPILER_IS_GNUCXX)
+  ei_add_test(nesting_profiling "" "-lrt")
+else()
+  ei_add_test(nesting_profiling)
+endif()
 
 find_package(FFTW)
 if(FFTW_FOUND)
diff --git a/unsupported/test/nesting_profiling.cpp b/unsupported/test/nesting_profiling.cpp
index c0803bd..f1fa973 100644
--- a/unsupported/test/nesting_profiling.cpp
+++ b/unsupported/test/nesting_profiling.cpp
@@ -30,7 +30,7 @@
 #include "Eigen/Array"
 #include "Eigen/Geometry"
 
-#include "Bench/BenchTimer.h"
+#include "bench/BenchTimer.h"
 
 using namespace Eigen;