- Use libs instead of lapack_libs (see #3364). - Add a patch to fix building with recent versions of gcc. - Add a patch to fix building with mvapich2.