Fixes #3850: Move r29447 to v1.7

---svn-pre-commit-ignore-below---

r29447 [[BR]]
enable fortran for shmem, add O3 by default