Use X87 intrinsics for cos when available

The previous value was -0.416155 which is incorrect in the last two
digits as the correct value is -0.4161468365 to ten significant
digits. As of this commit, the value for cos(2.0) is -0.416147.