Supplying power to a standalone ATMega328P-PU

The 2nd VCC pin (pin 20 on the IC) is actually AVCC, its for supplying power to the ADC circuitry. The datasheet says that it should be connected to VCC even if you're not using any analog stuff, I personally don't have it connected when prototyping and not using the ADC, but for the final product I do connect it. The 2nd GND pin is optional.