adding special cases for the new ruby 2.1 class workflow and attempting to resolve header issues due to nmatrix changes