- fixed warnings to support 64 bit apps