Added .gitignore file
Fix old crap for new compilers, and 64-bit systems