Use --no-as-needed where possible, because without it we cannot link in MKL or friends.
Add missing abs() on double