Fixed makefile bug. Libraries need to be at the end of compile line. Some versions of g++ don't like the other way.