Fix flatpak build
Installation path macros cannot be reliably used to define the location
of build dependencies, as they may not be in the same prefix if they are
part of the runtime or are buildroot only.
mpich and openmpi are neither building nor are needed for flatpak builds.