Fix bug 542: fix detection of compiler version on systems without the head command.
Bug 71: enable vectorization of diagonal products in more cases.