a couple of compile fixes if lapack is not available