Try to fix travis failure.

/usr/local/lib isn't in the library search path for Ubuntu 12.04,
so try to ldconfig it first.