something is wrong in your hardware and/or configuration fuses... it's working here. Be sure you have place 4.7K or lower on the scl and SDA line and it should work... unless you have reverted the SDA and SCL

If at least you have serial communication, the PIC is working at the great and at the right speed wich reject the config fuses problem

but i don't have the LC512, as now i didn't have any requirement for those... just the LC128 so it can exist some difference between... wich i doubt after a really fast datasheet reading.