Fix 'undefined reference' errors.

When attempting to compile the application I received a number of 'undefined reference' errors. Placing the -lcurses option after the object files (from [here](http://stackoverflow.com/a/17072387)) in the call to gcc allowed for successful compilation. I've edited the Makefile accordingly.