Index: splinter-3.0/src/bsplinebasis.cpp
===================================================================
--- splinter-3.0.orig/src/bsplinebasis.cpp
+++ splinter-3.0/src/bsplinebasis.cpp
@@ -119,7 +119,7 @@ SparseMatrix BSplineBasis::evalBasisJaco
 
         // Fill out column
         for (int k = 0; k < Ji.outerSize(); ++k)
-        for (SparseMatrix::InnerIterator it(Ji,k); it; ++it)
+        for (SparseVector::InnerIterator it(Ji,k); it; ++it)
         {
             if (it.value() != 0)
                 J.insert(it.row(),i) = it.value();
Index: splinter-3.0/CMakeLists.txt
===================================================================
--- splinter-3.0.orig/CMakeLists.txt
+++ splinter-3.0/CMakeLists.txt
@@ -119,7 +119,10 @@ elseif(INTEL)
 endif()
 
 if(NOT EIGEN_DIRECTORY)
-	set(EIGEN_DIRECTORY ${DEFAULT_EIGEN_DIRECTORY})
+    set(EIGEN_DIRECTORY ${DEFAULT_EIGEN_DIRECTORY})
+    set(EIGEN_INSTALL_DIRS
+      ${DEFAULT_EIGEN_DIRECTORY}/Eigen
+      ${DEFAULT_EIGEN_DIRECTORY}/unsupported)
 endif()
 # CACHE STRING = Display the option with help text in CMakeCache.txt
 set(EIGEN_DIRECTORY ${EIGEN_DIRECTORY} CACHE STRING "Directory where the Eigen library is located.")
@@ -280,8 +283,7 @@ install(
 install(
     DIRECTORY
     ${CMAKE_CURRENT_SOURCE_DIR}/include/
-    ${EIGEN_DIRECTORY}/Eigen
-    ${EIGEN_DIRECTORY}/unsupported
+    ${EIGEN_INSTALL_DIRS}
     DESTINATION ${HEADER_INSTALL_DIRECTORY}/SPLINTER
 )
 # Install the shared library file
