diff --git a/src/include/lapack_calls.h b/src/include/lapack_calls.h
index 9c363e74469adaacb02f4bd62b28ece86660f251..430d9f57531bb5361f4828e7ddf37f949df2393d 100644
--- a/src/include/lapack_calls.h
+++ b/src/include/lapack_calls.h
@@ -13,7 +13,7 @@
  * matrix with double precision elements.
  *
  * \param mat: Matrix of complex. The matrix to be inverted.
- * \param n: `int` The number of rows and columns of the [n x n] matrix.
+ * \param n: `lapack_int` The number of rows and columns of the [n x n] matrix.
  * \param jer: `int &` Reference to an integer return flag.
  */
 void zinvert(std::complex<double> **mat, lapack_int n, int &jer);
diff --git a/src/make.inc b/src/make.inc
index 3779c034802c64fbab301c084ecdf5c045c92243..35dc57133af4d91ef332f1016c56d23150d0856c 100644
--- a/src/make.inc
+++ b/src/make.inc
@@ -40,7 +40,7 @@ endif
 
 # CXXFLAGS defines the default compilation options for the C++ compiler
 ifndef CXXFLAGS
-override CXXFLAGS=-O3 -ggdb -pg -coverage -I$(HDF5_INCLUDE) -DLAPACK_ILP64
+override CXXFLAGS=-O3 -ggdb -pg -coverage -DLAPACK_ILP64 -I$(HDF5_INCLUDE)
 #override CXXFLAGS=-O3 -I$(HDF5_INCLUDE)
 endif
 
@@ -50,7 +50,7 @@ ifndef CXXLDFLAGS
 ifndef HDF5_LIB
 override HDF5_LIB=/usr/lib/x86_64-linux-gnu/hdf5/serial
 endif
-override CXXLDFLAGS=-L/usr/lib64 -L$(HDF5_LIB) -lhdf5 -llapacke $(LDFLAGS)
+override CXXLDFLAGS=-L/usr/lib64 -L$(HDF5_LIB) -lhdf5 -llapacke64 $(LDFLAGS)
 #else
 #override CXXLDFLAGS=-L/usr/lib64 -L$(HDF5_LIB) -lhdf5 $(CXXLDFLAGS)
 endif