32/64 bit interoperability fixes