Added Travis continuous integration.
Fix compile error in Travis.