There's nothing wrong with the sketch or the library, it runs fine on the arduino. (Even just the "#include <EEPROM.h>" statement on its own is enough to trigger the error.)
I was just hoping the OP had figured out the source of the problem.
The problem for me is with syntastic in any case, not arduino.
And meanwhile I think I know what the problem is: syntastic uses avr-gcc to check ino-files, whilst it should be using avr-g++
I don't immediately see a solution for the problem though, apart from changing the syntastic checker or adding a new one.
I was hoping I was simply missing some compile flag or library import, but it seems it's not that simple after all