Added gomp to the module linking flags.

Re #9328. It appears that make appends the compile flags when
calling the linker and ninja does not.
Merge branch 'feature/9328_ninja_gomp' into develop