Fix all Windows issues with C math functions