Errors trying to use Nick Gammon's Atmega_Hex_Uploader.ino

Sup guys
I'm trying to use Nick's Atmega_Hex_Uploader.ino but I keep getting errors when compiling:

Atmega_Hex_Uploader:135: error: 'SdFat' does not name a type
Atmega_Hex_Uploader.ino: In function 'boolean readHexFile(const char*, byte)':
Atmega_Hex_Uploader:661: error: 'ifstream' was not declared in this scope
Atmega_Hex_Uploader:661: error: expected `;' before 'sdin'
Atmega_Hex_Uploader:679: error: 'sdin' was not declared in this scope
Atmega_Hex_Uploader:705: error: 'sdin' was not declared in this scope
Atmega_Hex_Uploader.ino: In function 'void showDirectory()':
Atmega_Hex_Uploader:985: error: 'SdFile' was not declared in this scope
Atmega_Hex_Uploader:985: error: expected `;' before 'file'
Atmega_Hex_Uploader:993: error: 'sd' was not declared in this scope
Atmega_Hex_Uploader:996: error: 'file' was not declared in this scope
Atmega_Hex_Uploader:996: error: 'O_READ' was not declared in this scope
Atmega_Hex_Uploader:1011: error: 'dir_t' was not declared in this scope
Atmega_Hex_Uploader:1011: error: expected `;' before 'd'
Atmega_Hex_Uploader:1012: error: 'd' was not declared in this scope
Atmega_Hex_Uploader:1014: error: 'FAT_DEFAULT_DATE' was not declared in this scope
Atmega_Hex_Uploader.ino: In function 'void setup()':
Atmega_Hex_Uploader:1060: error: 'sd' was not declared in this scope
Atmega_Hex_Uploader:1060: error: 'SPI_HALF_SPEED' was not declared in this scope
Atmega_Hex_Uploader.ino: In function 'void readFlashContents()':
Atmega_Hex_Uploader:1182: error: 'sd' was not declared in this scope
Atmega_Hex_Uploader:1197: error: 'SdFile' was not declared in this scope
Atmega_Hex_Uploader:1197: error: expected `;' before 'myFile'
Atmega_Hex_Uploader:1200: error: 'myFile' was not declared in this scope
Atmega_Hex_Uploader:1200: error: 'O_WRITE' was not declared in this scope
Atmega_Hex_Uploader:1200: error: 'O_CREAT' was not declared in this scope
Atmega_Hex_Uploader:1200: error: 'O_TRUNC' was not declared in this scope
Atmega_Hex_Uploader:1245: error: 'myFile' was not declared in this scope
Atmega_Hex_Uploader:1262: error: 'myFile' was not declared in this scope
Atmega_Hex_Uploader:1275: error: 'myFile' was not declared in this scope
Atmega_Hex_Uploader:1278: error: 'sd' was not declared in this scope

I've installed these libraries in arduino IDE version 1.0.5:

SdFatBeta20130621.zip

didn't work so I added

Flash4.zip
sdfatlib20130629.zip

Still getting the same error.

Anyone has any idea how to get this sketch compiled??
Thanks

I've installed these libraries in arduino IDE version 1.0.5:

Where did you install them? Not in with the core libraries, did you?

I installed them as per this guide:

You need to use the manual procedure to install the libraries.

The 1.0.5 IDE automated install does not check if it makes sense to unzip a file and copy it to the libraries folder.

Unzip the library files and copy the Flash and SdFat folders to the libraries folder in your sketchbook using the manual install instructions.