AppKit support for 64 bit build

I've started working on a MonoMac build that runs in a 64 bit process.  Here are the AppKit modifications.  Please let me know if you would like this written a different way and I'll be happy to change.