27625, 27627, 27647, 27648, 27661, 27668, 27670, 27671, 27674, 27676, 27703, 27716, 27720, 27747, 27754, 27755 from the trunk. Mostly CMake and Fortran changes. Tested on: jam (w/ gcc/gfortran 4.9.3)
Tested on: NONE (CMake is still broken in this branch)