The message is a bit strange, but it should tell you that your Fortran
compiler doesn't support the real*16 extension. You could rebuild lam
with a compiler which does support such an extension, such as the compiler
you must have used with openmpi.
By old-style, the message presumably refers to the standard way, since 15
years ago, of specifying data types with selected_real_kind. However,
making a cosmetic change to your source won't allow it to compile, unless
you change your source to select the largest data type supported by the
compiler.