Better support for future 1.7.10 update

This will fix many of the build errors encountered for 1.7.10, but are completely supported and tested on 1.7.2. I also added IntelliJ files to the .gitignore.