Fixed build for windows
Made armadillo dependency optional