Bring in the Makefile fix from the luapi branch.
Update copyrights to 2013.
Remove trailing whitespace.