Support better versioning on Makefile.
Make Travis export LD_LIBRARY_PATH before testing on Linux.