u16 does not name a type ?

OK, you definitely shouldn't be encountering that error. It seems like your installation of the Arduino IDE might have been corrupted. I recommend you to uninstall it, install a fresh copy downloaded from http://www.arduino.cc/en/Main/Software, and then try again. If that doesn't solve it then we can try another possible solution.