Some macros are not compatible with gfortran
built-in preprocessor. This MR aims to fix these issues.
This is part of a series of fixes that would get rid of the cpp
workflow and simplify the build procedures. This is especially needed to build a simple cmake
buildchain