patched NAG to phase out CCC
merged Anton's branch into my linalg