updated to newer cmake 3.1.0 version to allow use of CheckFortranCodeCompiles macros etc