Trying to fix build

pkg-config cannot link libraries for Travis Ubuntu. This commit tries to
fix it by changing order of compiler options.

See [SO answer](http://stackoverflow.com/a/18182369/1145239) I'm trying
to follow now.