Fix for non-windows math functions