Quick'n'dirty bypass of 64-bit JIT compiler bug

Apparently using an ICustomMarshaler on the signature on a callback
function from native to managed in CLR 2.0 can cause issues in 64-bit
land.
Who knew?