Fixed issues with the #have_func calls and the "unused variable" warnings

There was an error in the #have_func calls in extconf.rb, where the type of the function wasn't included.

There was also a warning that kept popping up because of unused variables. This popped up every time I ran my tests when including NMatrix.