added CMake build + fixed gfortran build