working through 64 bit mods
AppKit namespace modified to support 64bit compile