Workarround on handling ip2long & long2ip on 32 and 64 bit systems.

Fixed MySQL script which I broke in previous commit.