1.6.4 was a disastrous release, you should not expect it to work, and you will continue encountering endless problems if you try to use it.
Upgrade to the current version of the IDE and see if you still have the compiling problem.
Also, have you considered getting one of the LCDs with an I2C backpack? That makes it use only pins A4 and A5.