removed -ffinite-math-only flag because of http://www.velocityreviews.com/forums/t737937-p2-isnan-or-isntnan.html and because in NANs can occur in BA