Fixed broken Makefile.

The order of modules and libraries does not work on ubuntu 12.04.
Now links on ubuntu 12.04, see https://wiki.ubuntu.com/NattyNarwhal/ToolchainTransition