Fixed 64 bit compilation warnings and errors
Merge pull request #4 from cyberbum/master

Fixed 64 bit compilation warnings and errors