Fixed a long-standing issue of matrix slicing in C++ with ALL behaving inconsistently.
Concerning #579: adding BLAS and LAPACK to library list