tackling compiler warnings

This PR will reduce the number of triggered compiler warnings to 0 for Clang and 1 (in Eigen3) for GCC.