Fix unused variable warnings

There is also an unused variable in: boost/numeric/ublas/functional.hpp:1138: unused parameter 'j'
but in this case it can't be commented out. boost::ignore_unused_variable_warning() defined in boost/concept_check.hpp could be used or similar function added to Ublas.