Compatsocket

Fixes issue with 64-bit builds.