Fix LDFLAGS location in linker line.

With gcc, libs need to be at the end of the line otherwise we get crappy
undefined references to symbols coming from these libs.
Add glog to the packages to install for travis.
Enable linking against glog.
Install glog initial handlers.