Remove accidental double const
Removed the last extern declarations in the LAPACK source code
Fixed warnings for implicitly declared functions and potentially bogus grouping of && and || operators