Changed typedefs to work with 64-bit compiler.