added CMake build + fixed gfortran build

No match.