some fixes for Lapack and ARM platform

some fixes for Lapack and ARM platform