Preliminary support for Altera compilation

This commit added some preliminary support for Altera FPGAs.
It also includes an example to compile the UART example.
Renaming: changed variable and scripts name as suggested by Jamey
Merge pull request #1 from hanw/master

Add preliminary support for Altera FPGAs