Makefile: fix for compiler linking arguments order. Must be passed
as last argument to g++ or linking will fail with undefined references.

Using: g++-4.8.real (Ubuntu 4.8.2-19ubuntu1) 4.8.2