Made some changes, and proper configuration to allow for 64bit compilation. Also made sure the code will send the same information over the 'wire', to make sure the 32bit and 64bit versions can talk to each other.

TODO: make sure the dll's names reflect if they are the 32bit or 64bit version.
Fixed some bugs that showed when compiling for 64bit.