Makefile update, added linking objects in each binary.

It would not link on my machine. Also, moved link flags to end of line for future maintainability.

My dev machine:
Ubuntu Linux 12.04
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
GNU ld (GNU Binutils for Ubuntu) 2.22