only compiles with armadillo 4