ENH: Remove the need for temporary copies in numpy.dot

in numpy core, modified the blas function call to handle
C and F order arrays without the need for copy.
This brings a significant speed up for matrix multiplication
Added a full test for matrix multiplication in test_blasdot
(cherry picked from commit ea037770e03f23aca1a06274a1a8e8bf0e0e2ee4)
REL: fix version in maintenance branch.
BLD: restore compatibility with ANSI C
Merge pull request #3652 from cgohlke/patch-1

BLD: restore compatibility with ANSI C
TST: linalg: loosen the requirements of some tests in test_blasdot.py.  Addresses part of gh-3399.

Closes #3656.
Merge pull request #3661 from charris/fix-1.7.x-test-failure

Fix 1.7.x test failure
ENH: add support for Python 3.4 ast.NameConstant
TST: add test for Python 3.4 _ast.NameConstant
Merge pull request #3705 from charris/backport-1.7-3701

Backport 1.7 3701