Fix initialization order of MANTIDLIBS cmake variable.

If MPI is enabled then this ensures the Boost_LIBRARIES variable is
captured before it is overwritten.
Refs #10632
Merge pull request #82 from mantidproject/bugfix/10632_fix_clean_mpi_build

Fix clean MPI-enabled build