Fix some compilation issues on Windows.

The new VC 12 implements more math functions.